C19 is an Open Source COVID-19 self registration tool build by volunteering people in tech. We are startup founders, engineers, designers etc. with resources sponsored by tech-companies around the world.
We're currently piloting in Denmark on https://c19.dk.
- PostgreSQL database
- download an installer from https://www.postgresql.org/download/
note: The MacOS installer of Postgres 12 is very user friendly! :)) - Alternatively use a free database from Heruko or ElephantSQL
- download an installer from https://www.postgresql.org/download/
- NodeJS
- Fork the repo to you own github user (so you are ready to make pull requests)
- Clone the codebase to your machine
git clone ....
npm install
(oryarn
)- copy the template file
.env.example
to.env
and open that file - enter tokens to the various services used
- the postgres connection string eg
DATABASE=postgres://postgres:password@localhost:5432/c19
- the SECRET (some 64-bit password used for db-encryption)
- the Twilio keys (you can ignore this while in development)
- the Rollbar token (you can ignore this while in the development)
- the postgres connection string eg
- Create DB tables
- Run the SQL found in
create.sql
to setup tables. Eg you can simply copy-past the SQL into the Query Tool (click Tools -> Query Tool) in PgAdmin4
- Run the SQL found in
Run npm run dev
(or yarn dev
) to start the development loop.
When running npm run dev
, you see a big ugly stack trace ...
[ wait ] compiling ...
[ ready ] compiled successfully - ready on http://localhost:3000
TypeError: Invalid connection details: undefined
.. then postgres is not running yet!