- Create a basic Nodejs server
- Use Nodemon for watching changes.
- Create basic Routes for the authentication
- 3.1 POST - Login
- 3.2 POST - Register
- 3.3 GET - Private (Just for authenticated users)
- Register the users using their username and password.
- Read about JWT
- 5.1 Create an JWT once the user has enter his username and password succesfully.
- 5.2 Use Passport and PassportJWT as the main auth middleware.
Note: Use Postman or an alternative for consuming APIs.