A repository to hold templates and code for the WorkBC Surveys.
Make sure you have Docker installed on your machine. You can download and install Docker from the Docker official website.
After installing Docker, open a terminal and run the following command to verify that Docker is installed correctly:
docker --version
Run the following command to start a new PostgreSQL database:
docker run --name postgres -e POSTGRES_PASSWORD=mysecretpassword -e POSTGRES_USER=myuser -p 5432:5432 -d postgres
Run the ./SQL/create_table.sql
SQL on the database after connection. This will create the tables surveys
and recipients
.
Make sure you have Node.js and npm (Node Package Manager) installed on your machine. You can download and install them from Node.js official website.
Run the following commands
cd cron
npm install
Check .env.example to fill out all environment variables, this can also be taken from the production application.
npx nodemon app.ts