- Create database
- Copy .env.example to .env and fill with database credentials.
To install dependencies, run
npm install
- Migrations:
npx sequelize-cli db:migrate
- Seeders:
npx sequelize-cli db:seed:all
npm start
> There are 20 testing users. 10 admins and 10 standarts users. (Please check the rolesId to determinate which one is Admin)
To make it easier to handle, all user data has the following structure:
- => replace {N} with a number between 1 and 20:
{
firstName: 'Usuario{N}',
lastName: 'Demo',
email: 'test@test{N}.com',
password: '1234',
roleId: 1,
image: 'https://www.designevo.com/res/templates/thumb_small/colorful-hand-and-warm-community.png',
createdAt: new Date,
updatedAt: new Date
}