Version: 0.16.x

Create Graphback

Create Graphback is a command-line utility for creating Graphback applications.

Usage

You can initialise a Graphback project by either of the following commands:

With npx:

npx create-graphback my-project

With npm init:

npm init graphback my-project

The CLI will ask you to pick from one of a number of templates. Once chosen, the template will be downloaded to your computer.

Change into your project folder:

cd my-awesome-project

Install dependencies with yarn (or npm):

yarn:

yarn

npm:

npm install

The project will have a GraphQL schema file with some example types which you will likely want to change. Learn how to design your data models.

Each template will be different, so you should follow the guide in your new project's README to complete the setup.