1. Create express.js web-server according to Express.js - SHORT GUIDE.
  2. Add connection link to .env like DB_HOST=..mongodb.net/mydatabase?retryWrites..
  3. npm i mongoose
  4. Add mongoDB connection code to server.js (or index.js).

    See the Pen 14 - MongoDB connection by Andrii (@imitator) on CodePen.

    Or a little bit refactored server.js (index.js) in this step.
  5. Make CRUD (controllers) functions (recom. start from POST, b/c there is no any items in DB)
  6. Add "Not Found" middleware for looking unexpected route after all middlewares.
  7. Add middlewares according to a task ( f.e. Joi schema e.t.c. ).
  8. Add registration, authentication & authorization.
  9. Add file uploading for routes f.e. avatar, image to gallery etc..
  10. Cover code by tests according to a task
  11. Add post messages for routes, f.e. sendgrid, nodemailer etc.