A food delivery API example using Hasura
yarn
to download project dependencies.cp .env.example .env
and fill in details.bootstrap/
as superuser, first in the postgres
database and then in the gbh
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 server, which hosts the following:
docker-compose up
to start the Hasura appliance, which will communicate with our running. You can also view docker-compose.yaml to see what we're passing to the container.HASURA_SECRET
from your .env
file as the password.metadata.json
is a dump of these annotations.https://github.com/sastraxi/great-bear-frontend
and follow its setup instructions. Put the following in its .env
:
REACT_APP_GRAPHQL_VARIANT=hasura
REACT_APP_GRAPHQL_URL=http://localhost:8080/v1/graphql # by default
REACT_APP_SUBSCRIPTION_URL=ws://localhost:8080/v1/graphql # by default
yarn start
as well.