Find your election candidate match: http://ctzen.info/
yarn install
yarn run sequelize db:create
yarn run sequelize db:migrate
yarn run sequelize db:seed:all
- Add polls:
node ./src/scripts/import_poll.js
(update src to latest) - Add candidate answers (optional):
node ./src/scripts/import_candidate_answers.js
(for candidate responses in/data
folder) yarn run start
(will start graphql api and front end)
- first time running tests setup test database:
yarn run sequelize db:create --env=test
yarn run sequelize db:migrate --env=test
yarn run test
debugging tests: run yarn run test:debug
and add debugger
in code or breakpoint in vscode (using vscode you must run test from vscode terminal)