s8990 / NodeJS-Auth-JWT-Cors

NodeJS Project - Authentication with JWT - Cors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Authenticate Users and Implement CORS in Node.js Apps

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

dependencies :
  • express
  • mongoose
  • dotenv
  • cors
  • jsonwebtoken
  • bcryptjs
devDependencies :
  • nodemon

About

NodeJS Project - Authentication with JWT - Cors


Languages

Language:JavaScript 100.0%