< Server-Side Scripting

This lesson introduces document database processing.

Objectives and Skills

Objectives and skills for this lesson include:

  • Understand NoSQL database concepts
  • Understand document database concepts
  • Use a document database with server-side scripts

Readings

  1. Wikipedia: NoSQL
  2. Wikipedia: Document-oriented database

Multimedia

Additional items will be contributed by course participants

Tutorials

Before trying to work with any database using a programming language, you should first be familiar with that database's command language. The following tutorials will be helpful in understanding how to use MongoDB.

Examples

Activities

Complete the following activities using HTML, CSS, and a server-side scripting language. Apply best practices for user interface design and your selected scripting language, including modules, comments, indentations, naming conventions, and constants. Use HTML forms and input elements for input, server-side scripts for processing, and HTML elements for output. Use separate functions for each type of processing. Avoid global variables by passing parameters and returning results. Add comments at the top of the code modules and include references to any resources used. Add the completed code to your website as /lesson10.

  1. Create an application that allows the user to insert, update, and delete records in a document database. After each action, display the current records. Use any document database and data structure you like. Be sure to include date, text, and number field types in the data structure. If in doubt, any of the previous cyclone, earthquake, or wildfire activities may be used as data examples.

Lesson Summary

Additional items will be contributed by course participants

Key Terms

Additional items will be contributed by course participants

Collection
A collection of a datafield; The equivalent to table in relational databases.[1]
Document (BSON)
A data structure composed of field and value pairs.[2]

See Also

References

This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.