Skip to content

felippeDev/node-api-secured-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-api-secured-jwt

NodeJS secured API with jwt - http://node-api-secured-jwt.herokuapp.com

How to use:

  • Clone the repo;

  • Start your local instance of MongoDB (usually on: mongodb://localhost:27017/node-api-secured-jwt);

  • Run npm install;

  • Use routes:

    • POST /api/authenticate: Expect body parameters with 'name' and 'password' and response with a jwt token;
    • GET /api/signUp: Creates a fakie simple user (name = felippeDev, password = password123);
    • GET /api/users: List all users (Expect a Authorization header with token);

    Next steps

    • Encrypt passwords with SHA1 hash;
    • Generate solid routes to CRUD users;

About

NodeJS secured API with jwt

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors