Example: Express with MongoDB

This is an example server running with MongoDB.

Installation

  1. Fork & clone

  2. cp nodemon.sample.json nodemon.json

  3. Create a new Cluster on MongoDB Atlas titled something like general-purpose or reuse one you already have.

  4. Update the MONGO_DB_CONNECTION in your nodemon.json file with the full connection string. Make sure you include the password you set up for the database and change the name of the database from test to something lke pies_server_dev.

  5. npm install

  6. npm run dev

Once installation is working, try creating and requesting resources.