Note: We must be installed almost Node.js 22.11.0 or higher.
we can also use nvm for windows to manage the Node.js versions or for linux/macOS we can use nvm
npm installNow you can run the project.
npm startIt's important start the project before running the console runners because we will create .env file, if we don't have it yet, and then the next step will be create the seed data in the database.
You can run the console runners to create seed data in the database.
npm run start:console-runnersNow, you can select the option to install seed data.
❯ seed-data
exitAfter select the option seed-data and you will insert the seed data in the database.
Rol usuario-administrador:
{
"email": "[email protected]",
"password": "carlos123"
}Rol Usuario-Escritura:
{
"email": "[email protected]",
"password": "maria456"
}Rol Usuario-Lectura:
{
"email": "[email protected]",
"password": "temp480"
}
#### Get users:
- [GET] http://localhost:3000/api/users
- [GET] http://localhost:3000/api/users?page=1&pageSize=10