Creating a project

You can create a Hasura project by cloning a project from the collection on hasura hub.

The following will ‘clone’ the project hasura/base (an empty Hasura project) to your system.

# creates a directory called '<my-project-dir>'
# clones the Hasura project 'hasura/base' into it
$ hasura clone hasura/base <my-project-dir>

   Cloning project...
   ✓ Project cloned directory=<base-dir>/my-project-dir

You can clone any project from hasura hub and use that as a starting point for your new project.

hasura/hello-world is a good starter project that contains a few database migrations, some sample data and even a sample microservice to help learn about Hasura features quickly.


This command automatically initializes a git repository in your project folder