Basic Authentication with Node/Express and Mongo

This article is a walkthrough to creating a basic level of authentication with Express, Mongo and JSON Web Token. You can add more layers of complexity if you wish (user roles, refresh tokens, etc.).

Step 1 — Create the Application

  • create new folder
  • create a server.js file