The API server for the POAP Vote application. Available at https://poap.vote/api. Checkout the available endpoints.
- node.js v12.16.1 or later
- npm v6.13.4 or later
- PostgreSQL 9.6 or later w/ command line tools
- Postgres.app - Easiest way to run Postgres on a Mac
- Postico - Graphical interface for interacting with Postgres DB
- Postman - App for interacting with APIs
From the backend
directory, run:
npm install
cp .env-tempplate .env
npm run init-dev-db
npm run migrate
npm run dev
The API is now running on port 3000. To execute tests, run npm test