Sign inSign up

sharpnotionsllc/pantry-list-api

By sharpnotionsllc

•Updated about 8 years ago

Pantry-list-api

Image
1

207

sharpnotionsllc/pantry-list-api repository overview

⁠pantry-list-api

A Koa backend for the Pantry List app.

⁠Developing Locally

yarn
yarn start-dev

Server listens on port 4000.

Testing: yarn test-watch

⁠GraphQL

/graphiql is enabled on dev and prod

⁠Deployments

Heroku automatically:

⁠Docker

https://hub.docker.com/r/sharpnotionsllc/pantry-list-api/⁠

  1. copy your npmrc file to dir cp ~/.npmrc .
docker-compose up

⁠Database Miscellanea

For developing against a local db:

psql
CREATE DATABASE pantry_list;
CREATE DATABASE pantry_list_test;
⁠Create migration
yarn create-migration -- <migration name>
⁠Run migrations
yarn migrate

yarn migrate -- --env test
⁠Rollback migrations
yarn migrate-rollback

Tag summary

Content type

Image

Digest

Size

294.8 MB

Last updated

about 8 years ago

docker pull sharpnotionsllc/pantry-list-api