- Installed Docker
- Postgrestql
Please running docker-compose build
in the time you clone this repository.
-
Import your
.env
text. For the env example you can go to this file env.exampleNODE_ENV
you can fill it withdevelopment
POSTGRES_DB
your postgres host database, you can fill it withdb
since we used image from docker container.POSTGRES_USER
your postgres user namePOSTGRES_PASSWORD
your password of postgres userPOSTGRES_DB
your database namePOSTGRES_PORT
your allocated port of databaseEXPRESS_PORT
your allocated port for running the express server
-
For running the express server you can run this command in your terminal
docker-compose up -d
, thendocker-compose logs -f --tail=100 api
-
API Docs:
- You can visit API Docs in here
-
For Unit Testing you can run
docker exec api npm test