-
Add .env file in the root of the project with variables similar to those in .env-example file
-
Run
npm install
to install all dependencies -
Run
npm run start:dev
to start the server
- Run
npm run seed
to seed the database with some random data
-
Install Docker and Docker Compose Link here
-
Run
docker-compose build
to build the image -
Run
docker-compose up
to start the server
-
Swagger documentation is available at
/api-docs
-
You can see some sample requests in the swagger documentation
-
After seeding the db these users will be created for testing
-
Manager credentials:
{
"email": "manager@example.com",
"password": "password"
}
- Accountant credentials:
{
"email": "accountant@gmail.com",
"password": "password"
}
- Simple user credentials:
{
"email": "user@example.com",
"password": "password"
}