- Postgresql
- Node.js
Create .env
file.
Example:
NODE_ENV=development
PORT=3002
BASE_URL=http://localhost:3002
DB_TYPE=postgres
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=root
DB_PASSWORD=
DB_NAME=balancer
npm run migration:run
npm run dev
Create test.env
file just like .env
.
NODE_ENV=test npm run migration:run
npm test
Create production.env
just like .env
.
You should exclude
PORT
. It will be provided by now.sh
NODE_ENV=production npm run migration:run
Example:
{
"engines": {
"node": "8.11.1"
},
"dotenv": "production.env",
"alias": "DOMAIN_SHOULD_BE_HERE"
}
now && now alias