- Clone this repository.
$ git clone <repo_link>
- Go to the project folder.
$ cd <repo_folder>
- Copy environment file
$ cp .env.example .env
and included values - Copy environment docker file
$ cp .env.docker.example .env.docker
and included values - Run
$ nvm use
- Install the dependencies.
$ npm install
- Run DB using docker compose.
$ docker-compose --env-file=.env.docker up -d
- Run the server.
$ npm run dev
- Access: http://localhost:{portNumber}
- Run Jest Tests
$ npm run test
- Access Swagger
http://localhost:{portNumber}/api-docs
- Get Docker postgres_contaier IP address
$ docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' postgres_container
and changed DB_HOST variable in .env - Access: http://localhost:5050/
- Create the server according to your environment variables
- Get Docker rabbitmq IP address
$ docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' rabbitmq_management
and changed RABBITMQ_HOST variable in .env - Access: http://localhost:15672/
- Create migration:
$ npm run create:migrate
- Run migrations:
$ npm run migrate