Skip to content

TheHandyOwl/node_with_jwt_and_cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node_with_jwt_and_cors

This is an example of a simple backend with mongoDB (AtlasDB), bcrypt, JWT aand cors.

Custom variables (.env file):

DB_ATLAS_DBNAME = yourDBName
DB_ATLAS_PASSWORD = yourDBPassword
DB_ATLAS_USER = yourDBUseer

PORT = 3000

JWT_TOKEN_SECRET = yourSecretKey
SALTSTEPS = 1

Install:

Example link:

https://andygeek.com/posts/Mis%20apuntes%20JavaScript/posts/Api-rest-de-login-con-express-mongodb-jwt/

Original github repository:

https://github.com/andygeek/backend-auth/

Heroku DEMO

Wait a few seconds if the server is down until it reboots: https://nodewithjwtandcors.herokuapp.com/