- Install Node.js, NPM, and Docker
-
Install Hasura GraphQL Engine dependencies:
npm install
-
Install Hasura CLI
npm install --global hasura-cli
Full instructions are here: https://hasura.io/docs/latest/hasura-cli/install-hasura-cli/
-
Start the Hasura GraphQL engine Docker:
docker-compose up -d
-
Apply Initial Migation
hasura deploy --endpoint http://localhost:8080
- Apply Seed data to database:
./plant_seeds.sh
or./plant_seeds.ps1
, as applicable
-
Install application dependencies:
npm install
-
Start the dev server:
npm start
At this point the page should render in whatever browser you have open, at http://localhost:3000/.
To access the Hasura GraphQL engine console, from a terminal at ./T4/www/hasura-data:
hasura console --admin-secret 'ADMIN_SECRET_HERE'
This will open a Hasura console in a browser tab. From here you can interact graphically with the GraphQL engine and the data.
Setup ngrok for local development
Copy ngrok.yml
to %USERPROFILE%\AppData\Local\ngrok\ngrok.yml
Update %USERPROFILE%\AppData\Local\ngrok\ngrok.yml
with your authtoken from https://ngrok.com/
run:
ngrok start --all
THE BELOW SECTION IS IN WORK AND INCOMPLETE
Follow setup instructions here: https://hasura.io/docs/latest/guides/integrations/auth0-jwt/#create-an-auth0-application
Set application logo: https://i.imgur.com/wpr0uCy.png Application URIs > Application Login URI: INSERT_NGROK_URL_HERE Application URIs > Allowed callback URLs: http://jwt.io Advanced Settings > OAuth > OIDC Conformant: disabled