Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 839 Bytes

README.md

File metadata and controls

34 lines (20 loc) · 839 Bytes

POAP Vote API Server

The API server for the POAP Vote application. Available at https://poap.vote/api. Checkout the available endpoints.

Development Requirements

  • node.js v12.16.1 or later
  • npm v6.13.4 or later
  • PostgreSQL 9.6 or later w/ command line tools

Optional 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

Setup

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