NodeJS secured API with jwt - http://node-api-secured-jwt.herokuapp.com
-
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);
- Encrypt passwords with SHA1 hash;
- Generate solid routes to CRUD users;