This is the N+1 getting started repo. I've taken the basics of getting started locally and added a schema with tables, migrations, and the next X steps.
This is a very basic Hasura project. To use this complete the following steps.
- Clone this repo
git clone. - From the root (where the docker-compose.yml file is located) execute
docker compose up -d. - Navigate into the
hasuradirectory. - Execute
hasura metadata apply, thenhasura migrate apply, and thenhasura metadata apply. Just do it, it's a strange workflow thing. - Navigate now into the
hasuradirectory and executehasura console.
The steps I followed to build out this example starter includes:
- Created the directory "hasura-quick-start".
- Installed the Hasura CLI.
- Pulled the latest Docker Compose file.
- Ran
hasura initin the directory "hasura-quick-start" for the basic folder structure underhasura. - Launched
hasura consolefor this instance and added the database connection forPG_DATABASE_URL. - Continued building out the database from the console so that migrations would be built.
- Used the console to add some data, which added to the migrations.
- Finished. This is now what this existing repository consists of.
There are other project(s) (currently just one here) that will use this as a base project. As I build out these other projects they will be listed here: