A Koa backend for the Pantry List app.
yarn
yarn start-dev
Server listens on port 4000.
Testing: yarn test-watch
/graphiql
is enabled on dev and prod
Heroku automatically:
- Deploys new pushes to
master
to https://pantry-list-api.herokuapp.com. - Runs tests for any branch push.
https://hub.docker.com/r/sharpnotionsllc/pantry-list-api/
- copy your npmrc file to dir
cp ~/.npmrc .
docker-compose up
- open localhost:4000
For developing against a local db:
psql
CREATE DATABASE pantry_list;
CREATE DATABASE pantry_list_test;
yarn create-migration -- <migration name>
yarn migrate
yarn migrate -- --env test
yarn migrate-rollback