Implementation of the Great Bear backend using Graphile (aka postgraphile aka postgraphql)
cp .env.example .env
and fill in details.bootstrap/
as superuser, first in the postgres
database and then in the gbpg
database (or whatever you choose to call it).pgsh up
to migrate to the latest version.pgsh psql < seed.sql
to seed the database with some dishes you can order.yarn start
to begin the serverhttps://github.com/sastraxi/great-bear-frontend
and follow its setup instructions. Put the following in its .env
:
REACT_APP_GRAPHQL_VARIANT=postgraphile
REACT_APP_GRAPHQL_URL=http://localhost:4000/graphql # by default
REACT_APP_SUBSCRIPTION_URL=ws://localhost:4000/graphql # by default
yarn start
as well.get-pubsub
, refactor this gist into a library:
pg.listen