$ npm install -g pm2
$ git clone https://github.com/danielalmeidafarias/mks-backend-challenge.git
DB_HOST=your db host
DB_USERNAME=your db username
DB_PASSWORD=your db password
DB_NAME=your db name
JWT_SECRET_KEY="a secret key for jwt"
JWT_SECRET_REDIRECT="another one"
SERVER_HOST=where your application is running (localhost:3000 if its in development)
$ docker compose up -d
- obs: Make sure ports 5432, 6379 and 8081 are free. If it's not, you can modify your compose.yml file
$ npm install
- Development
$ npm run start:dev
- Production
# production mode
$ npm install -g pm2
$ npm run build
$ pm2 run dist/main.js
- access https://vercelapimovies-danielalmeidafarias-projects.vercel.app/api/api
- or access postman documentation https://documenter.getpostman.com/view/32616533/2sA3JQ5zsj
- or run it locally and access http://localhost:3000/api