Full Stack Example
This example will walk through putting together a full stack app on KintoHub from the ground up and will take about 15 minutes. If you are interested in a quick single service, check out our list of examples.
This example will deploy a Todo List App using React
, Hasura
, and Postgres
which are available within KintoHub's free tier.
#
Deploy a Postgres ServerTo store your data, you will need a Postgres database. KintoHub provides a dedicated Postgres server with 1 GB of storage.
- Click on the Create Service button displayed at the top right of your environment.
- Click on the From Catalog tab.
- Click on PostgreSQL service.
- Enter or generate your
Username
,Password
, andRoot Password
. - Click on the Deploy button at the top right.
This process will take around 1 Minute to complete.
Once the Status has changed from Deploying
to Live Version
, click on the Access tab at the top center of the page.
Copy the Connection String (Admin) and paste it in a notepad to use for the next step.
#
Deploy a Hasura ServiceThis tutorial has a premade Hasura repository with migration files available. You can deploy it with the following steps:
- Click on the Create Service button at the top right.
- Click on the Web App service.
- Click on the Import URL tab.
- Copy and paste the following into the Repository URL
https://github.com/kintoproj/kinto-examples
. - Enter the path to the subfolder: ./todo-hasura
- Click on the Connect button.
- Type
Dockerfile
in the Dockerfile Name field. - Type
8080
in the Port field. - Click the Environment Variables tab.
- Add the key
HASURA_GRAPHQL_DATABASE_URL
and paste in the Connection String (Admin) from the previous step as the value. - Add the key
HASURA_GRAPHQL_ENABLE_CONSOLE
and enter the valuetrue
. - Click on the Deploy button at the top right.
This will take around 30 Seconds to complete. Once complete, you can click the link to the right of Public API access via You will now see Hasura's dashboard and can copy the GraphQL Endpoint URL.
#
Setup React Web AppThis tutorial has a premade React Todo List App that works with Hasura. You can deploy it with the following steps:
- Click on the Create Service button at the top right.
- Click on the Web App service.
- Click on the Import URL tab.
- Copy and paste the following into the Repository URL
https://github.com/kintoproj/kinto-examples
. - Enter the path to the subfolder: ./todo-react
- Click on the Connect button.
- Type
Dockerfile
in the Dockerfile Name field. - Type
5000
in the Port field. - Click on the Environment Variables tab.
- Add the key
REACT_APP_SERVER_URL
and paste the GraphQL Endpoint URL from the previous step as the value. - Click on the Deploy button.
This will take around 3 Minutes to complete. Once complete, you can click the link to the right of Public API access via.