Backend for the Voting Information App
- Get Docker installed
- Switch postgres/Dockerfile.template to postgres/Dockerfile & alter the secrets for your project
- Switch config.template.js to config.js & alter the secrets for your project
- Ask developer for or make your own password hash for first user in postgres/schema.sql
- npm run schema:test
- Run
docker-compose up
on your terminal for it to build and run, along with auto-magically re-building when you change the code
Sorry that Windows is not UNIX, so we cant do docker :(
- https://github.com/nodejs/node-gyp#on-windows ( install the visual studio build tools with c++ & also install python2.7 )
- Switch postgres/Dockerfile.template to postgres/Dockerfile & alter the secrets for your project
- Switch config.template.js to config.js & alter the secrets for your project
- Ask developer for or make your own password hash for first user in postgres/schema.sql
- npm run schema:test & run postgres/schema.sql into your database ( Dont commit secrets to schema.sql! )
- install postgres https://www.postgresql.org/download/
- add postgres as a localhost host in C:\Windows\system32\drivers\etc\hosts
- npm install
- npm run start:dev
I essentially need to start building out the frontend, in order to find out what I need for the API calls, as the structure is now built for all of the API calls.
I might not be using promises properly for the db queries or just nodejs code in general.
- Keep using JWT or something more traditional for auth
- Security Questions & 2Factor
- Forget Password