The HQ for Pizza to the Polls. Powering our admin API... and other things.
-
Install dependencies
npm i
-
Make sure you've got postgres running locally with a user and a db
-
Copy
ormconfig.json.example
toormconfig.json
and add your db/credentials -
Run
npm run schema:sync
to set up the db -
Run
npm run dev
to see it in action -
To specify the database tests run against - specify env variables for
POSTGRES_DB
,POSTGRES_USERNAME
,POSTGRES_PASSWORD
GOOGLE_MAPS_KEY=XXDX ts-node scripts/uploadPreorder.ts path/to/csv