mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
ea6d9226d7
As I have been onboarding, in order to get a working sqlite agent/db running locally, I got some helpful steps from @mattshardman which I adapted into this testing setup. Hopefully this should ease the pain for the next person needing to do this! PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6261 GitOrigin-RevId: 03a3f04e38f118898bfd1d27de9305739dee5276
1.5 KiB
1.5 KiB
Setting up agent/db
This will create an agent and simple sqlite db for you to be able to interact with in the HGE Console
To finish this setup, you will need a working local Console, so do that first.
cd
intodc-agents/sqlite
and run
docker build . -t sqlite-agent
cd
intodc-agents/sqlite/test
and run
docker compose up -d
-
From the Console, go to Settings -> Feature Flags and enable Experimental features for GDC
-
From the Data tab, click Manage and click Add Agent.
-
Name your agent
sqlite agent
and depending on your docker setup, for URL usehttp://localhost:8100
orhttp://host.docker.internal:8100
. If you're not sure, try both and see which works!
- Aftering adding the agent, click
Connect Database
and for the Data Source Driver choosesqlite agent
from the dropdown menu. - For Database Display Name type in
sqlite-test
and for db type in/chinook.db
and clickConnect Database