In this chapter, we are going to introduce the NoSQL database called MongoDB. We will learn how well MongoDB suits modern web services. We will begin by learning about MongoDB collections and documents. We will try to create an example API with MongoDB as the database. In this process, we will use a driver package called mgo. We will then try to design a document model for the e-commerce REST services.
Basically, we are going to discuss the following topics:
- Installing and using MongoDB
- Working with the Mongo shell
- Building REST APIs with MongoDB as the database
- Basics of database indexing
- Designing an e-commerce document model