A polling platform.
- Run
npm run setup
to install all dependencies. - Start a postgres instance. You may use
npm run postgres
to start a docker container with the appropriate credentials. - To start development, run
npm run dev
. - The frontend is available at
http://localhost:8000
, the backend is available athttp://localhost:3000
.
After changing the backend, run npm run codegen:full
to copy swagger.json
into the frontend and generate the API client.
In the frontend, we use React with https://github.com/molefrog/wouter for routing and https://react-query.tanstack.com for data fetching.
In the backend, we use NestJS.
Before committing, run npm run precommit
to run tests and format the code.
Run npm run migration:generate MigrationName
in the backend and edit the generated file, if necessary. Migrations are run automatically on startup.