I started this project with this article. Then i try to improve it : How to Authenticate Users and Implement CORS in Node.js Apps.
Create .env file in project root directory (next to the index.js) and insert this values in .env file
API_PORT = // Your API Port
MONGO_URI = // Your MongoDB Path
TOKEN_KEY = // Your Token Key
- express
- mongoose
- dotenv
- cors
- jsonwebtoken
- bcryptjs
- nodemon