cd
into ./server
npm install
Create a .env
file (see below for contents)
Ensure postgres is running
Setup or reset the database to the latest schema. WARNING: This will delete any existing database named broker
and its associated data. => npm run resetdb
npm run dev
to start express server
Server .env
File contents
PORT=3001
NODE_ENV=development
DEV_DB_USER=
DEV_DB_PASSWORD=
DEV_DB_HOST=
DEV_DB_PORT=
TEST_DB_USER=
TEST_DB_PASSWORD=
TEST_DB_HOST=
TEST_DB_PORT=
cd
into ./client
npm install
Create .env
file (see below for contents)
npm run dev
to start the client dev server
Client .env
File contents
PROXY_PORT=3001 # Should match the PORT variable in the server .env file