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
hasura
directory. - Execute
hasura metadata apply
, thenhasura migrate apply
, and thenhasura metadata apply
. Just do it, it's a strange workflow thing. - Navigate now into the
hasura
directory 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 init
in the directory "hasura-quick-start" for the basic folder structure underhasura
. - Launched
hasura console
for 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: