cp .env.example .env
and fill in details.- Execute the SQL in
bootstrap/
as superuser, first in thepostgres
database and then in thegbpg
database (or whatever you choose to call it). - Make sure your connection string points to the database you just created, then run
pgsh up
to migrate to the latest version. - Run
pgsh psql < seed.sql
to seed the database with some dishes you can order. yarn start
to begin the server- Clone
https://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
- Run the frontend with
yarn start
as well. - Navigate to http://localhost:3000 (by default).
- Add error handling
- Follow https://www.graphile.org/postgraphile/testing-jest/
- retire
get-pubsub
, refactor this gist into a library:- https://gist.github.com/benjie/839740697f5a1c46ee8da98a1efac218
- include the necessary sql
- use
pg.listen