Airtribe Backend Assessment submission by Prabal Pratap
- Method 1: Using Docker
PORT = "5000" // this port are mapped to docker
DB_NAME = "airtribe" // or your own name
DB_USERNAME = "postgres" // keep the default username ("postgres") otherwise have to change username in the container manually
DB_PASSWORD = "123456" // or your own password but remember the password
DB_PORT = "5432" // this db port is mapped
DB_HOST = db // keep the same db host
JWT_SECRET_KEY = "your_JWT_secretKey" // or your own jwt secret key
docker-compose up
- Method 2: Using Github
git clone https://github.com/ranaprabal/airtribe.git
PORT = "5000" // this port are mapped to docker
DB_NAME = "airtribe" // or your own name
DB_USERNAME = "postgres" // keep the default username ("postgres") otherwise have to change username in the container manually
DB_PASSWORD = "123456" // or your own password but remember the password
DB_PORT = "5432" // this db port is mapped
DB_HOST = db // keep the same db host
JWT_SECRET_KEY = "your_JWT_secretKey" // or your own jwt secret key
npm i