A nodejs Typescript API with user authentication management, using JWT, mongodb Atlas and express.
- Clone the project
$ git clone https://github.com/JKS9/api-nodejs-note.git
- Point to folder
$ cd ./api-nodejs-note/
- Install dependencies
$ npm install
MONGODB_URL="XXXXXXXXXXXXXXXXXXXXXXXXX" (string)
PORT=XXXX (number)
ACCESS_TOKEN_PRIVATE_KEY="XXXXXXXXXXXXX" (string)
REFRESH_TOKEN_PRIVATE_KEY="XXXXXXXXXXXXXXX" (string)
SALT=XX (number)
$ npm run start
$ npm run tests