Api rest con nodejs, express con un cliente con js sin framework.
To start client server:
npm run dev:clienteTo start server:
npm run dev:servidorInstall the dependencies:
npm run install- NoSQL database: MongoDB con libreria Mongoose
- Authentication and authorization: usando jwt
- Encriptacion contraseñas: usando bcrypt
port: 3000
List of available routes:
Auth routes:
POST /api/login - login
User routes:
POST /api/users - create a user
GET /api/users - create a users
GET /api/users/:userId - get user
port: 3001
stateless statefull
http es stateless para convertirlo en statefull
Librerias
Crear una sesion, hacer un token y meterlo en la cookie

