├── .gitpod.yml ├── README.md └── gitpod-hasura.gif /.gitpod.yml: -------------------------------------------------------------------------------- 1 | image: marcopeg/gitpod-workspace-hasura:1.1.0 2 | 3 | tasks: 4 | - name: Hasura 5 | command: hasura_start 6 | 7 | ports: 8 | - port: 5432 9 | onOpen: ignore 10 | - port: 8080 11 | onOpen: open-browser 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # hasura-gitpod 2 | 3 | This is an example repository that runs [Hasura](https://hasura.io/) in [GitPod](https://gitpod.io/) 4 | with an embed and persistent [Postgres](https://www.postgresql.org/) database. 5 | 6 | ![GitPod Hasura](./gitpod-hasura.gif) 7 | 8 | [![Open in GitPod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/marcopeg/gitpod-hasura) 9 | 10 | --- 11 | 12 | 📝 This projects builds on top of 2 custom Docker images: 13 | 14 | - [GitPod Workspace Postgres](https://github.com/marcopeg/docker-images/tree/master/gitpod-workspace-postgres) provides with a data-persistent embed Postgres database that is executed inside your GitPod workspace 15 | - [GitPod Workspace Hasura](https://github.com/marcopeg/docker-images/tree/master/gitpod-workspace-hasura) imports the Hasura Engine and provides the workspace with a CLI command `hasura_start` 16 | 17 | You can check both _Dockerfiles'_ source code and adapt it to your custom needs. 18 | **I've personally learned a lot about GitPod and Docker by trying to put together this workspace.** 19 | 20 | --- 21 | 22 | 👉 You can read a more detailed story about the experience of building this here: 23 | https://marcopeg.com/2020/hasura-in-gitpod 24 | 25 | --- 26 | 27 | ⭐️ If you enjoy this repo, give me a star! 28 | 29 | Enjoy, 30 | Marco 31 | -------------------------------------------------------------------------------- /gitpod-hasura.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcopeg/gitpod-hasura/088a5421dd6a7bb822db4b839cae3b078e879223/gitpod-hasura.gif --------------------------------------------------------------------------------