REST API with user authentication.
-
Install
npmpackagesnpm i
-
Login or Register to MongoDb Atlas
-
Create a cluster and copy connection string
-
Create
.envfile in the project root dir and paste:PORT=8080 DB_CONNECTION_STRING="your-mongodb-atlas-connection-string" AUTH_SECRET='your-choosen-auth-secret-keyword' COOKIE_NAME='your-choosen-cookie-name'
-
Run the application
npm run dev
After you have completed the steps above navigate to http://localhost:8080/api-docs/#/.
Note: Modify
8080in the url above with the PORT you specified in .env file.
You can also click the link displayed in your termial log when the app is running.