A typical Heroku Connect app built around Express. Note that other libraries are also used:
- pug as view engine
- node-postgres as PostgreSQL client
- winston as logger
To run the application locally, you have to create a .env
file using the following command:
cp .env.exemple .env
Then modify the values in the file to match your environment.
Install project dependencies with:
npm install
To launch the application with npm
as Heroku does, run:
npm start
You may also use pm2
to watch changes in order to restart the application automatically:
npx pm2 start index.js --name ChallengeDays --watch