@matriarx/create-hasura v0.0.10
A Hasura project template that contains minimalistic boilerplate for any project. It uses the Hasura GraphQL engine to generate majority of the backend and exposes it through an automatically generated GraphQL API. You likely don't want to use everything exactly the way it is, but it'll get you set up quickly. The rest is up to you.
The Hasura documentation is at https://hasura.io.
This package contains the binary to set up the project at https://github.com/matriarx/hasura.
🧚🏻♀️✨ Status 🌈☁️
🧚🏻♀️✨ Repository 📚🚀
🧚🏻♀️✨ Project 📚🎨
🧚🏻♀️✨ Requirements 🗝️🔒
🪄✨ git 💯\ 🪄✨ curl 🤷🏻♀️\ 🪄✨ docker 💯\ 🪄✨ docker compose 💯
🧚🏻♀️✨ Setup 🚧🚀
You can either use the bin script or you can set it up manually.
🧚🏻♀️✨ Script
🪄✨ npm init @matriarx/hasura <project>
You can also use
curl -L https://github.com/matriarx/hasura/raw/main/init/init.sh | sh
if you want the latest version.
🧚🏻♀️✨ Manual
🪄✨ git clone https://github.com/matriarx/hasura.git
\
🪄✨ mv hasura <project>
\
🪄✨ cd <project>
\
🪄✨ cp .env.example .env
\
🪄✨ rm -rf .git
\
🪄✨ rm -rf init
\
🪄✨ rm -rf docs
\
🪄✨ curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash
🧚🏻♀️✨ Usage ✨🦄
🪄✨ docker compose up -d
~ Start a docker container using the GrahphQL engine for development.\
🪄✨ docker compose up --build --force-recreate -d
~ Rebuild the docker container.\
🪄✨ hasura console --envfile console.env
~ Launch the console and automatically manage migrations using the CLI.\
🪄✨ docker build . -f dockerfile -t hasura --build-arg TAG=latest.cli-migrations-v3 --build-arg PORT=80 --pull --no-cache --force-rm
~ Create a docker release image using the GraphQL engine.\
🪄✨ docker run -d -p 80:80 --restart always --name hasura hasura
~ Start a docker container using the release image.\
🪄✨ hasura migrate apply
~ Apply the migrations.
You can build the image using a variety of different arguments that depend on your setup and requirements, the preconfigured image will get you set up quickly but you'll need to configure it according to your own project.
🧚🏻♀️✨ Documentation 📚🔮
🪄✨ Project\ 🪄✨ Discussions\ 🪄✨ Issues\ 🪄✨ Wiki\ 🪄✨ Docs\ 🪄✨ Code of Conduct\ 🪄✨ Contributing\ 🪄✨ Security\ 🪄✨ Changelog\ 🪄✨ Release Notes\ 🪄✨ Authors\ 🪄✨ Contributors\ 🪄✨ Acknowledgements\ 🪄✨ Supporters\ 🪄✨ Contact\ 🪄✨ License
🧚🏻♀️✨ Collaboration ✨💕
Thank you to the authors who created this project, the contributors who collaborated, the supporters who help make it possible, as well as notable acknowledgements.
🧚🏻♀️✨ Contributors 💎🚀