Template of Node.js/MongoDB API for user register and login
Fun fact: Death Star because of the theme of my front-end example to use this API. The front-end demo
Node.js, Express, JWT, Mongoose, MongoDB
Official page: https://www.mongodb.com/cloud/atlas
Documentation: https://docs.atlas.mongodb.com/getting-started/
- Build your first cluster
- Create your first database user
- Add IP Address to your Access List
- Load Sample Data (Optional)
- Connect to your cluster
https://mongoosejs.com/docs/api.html
npm i mongoose
PORT
MONGODB_URL
AUTH_KEY