Before starting, install docker-compose to your machine and start docker containers:
$ docker-compose up
- need create .env file
- example: .example.env
node.js: v21.0.0
Install dependencies:
yarn
Now create a file called .env
in the project root and add the following variables, replacing the values with your own or you can see .env.example file.
.env
NODE_ENV=production
PORT=5500
DATABASE_URL="postgresql://postgres:P@ssw0rd@db:5432/myapp"
JWT_SECRET="JWT_SECRET_JWT_SECRET"
JWT_EXPIRES_IN="1d"
Run the project:
yarn start:deploy
Run the project tests:
yarn test
[Documentation] -> (/api/docs)