Quick Start
NodeJS Server
Environment Variables

Environment variables

Make sure you copy the entire content of the .env.example file and create a new file called .env in the root of the project. This file will contain all the environment variables that are used in the project.

APP_ENV=development
NODE_ENV=development
PORT=7777
NODE_DEBUGGER_PORT=9229
APP_VERSION=1.0
 
# Postgres
POSTGRES_SERVER=biddo_postgres
POSTGRES_PORT_EXTERNAL=6543
POSTGRES_USER=biddo
POSTGRES_PASSWORD=biddo
POSTGRES_DB=biddo-dev
POSTGRES_CONNECTION_MAX_POOL=90
SEQUELIZE_DEBUG=0
POSTGRES_HOST=biddo_postgres

Environment Variables

When you are running the project in development mode, you will use the database that is running in the Docker container. The POSTGRES_SERVER and POSTGRES_HOST should be the same as the service name in the docker-compose.yml file.

When you are going to run the project in production mode, you will need to change the POSTGRES_SERVER and POSTGRES_HOST to the IP address of the server where the database is running (We'll cover this in a later section).