Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
Update getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Mar 14, 2019
1 parent 2a45d78 commit e1a8bdb
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions docs/2-getting_started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,28 @@ route: /getting-started

# Getting started

## From scratch
Yoga comes with a tool to bootsrap a ready-to-use project. **No need to install anything**

- Install `yoga` as a dependency
- Start the tool with one of the following commands

```bash
yarn add yoga
```

- Init a `yoga` project

```bash
yarn yoga init
```

- The following folder structure will be created for you

```bash
src
├── context.ts (optional)
└── graphql
└── Query.ts
yarn create yoga
```

- Run `yarn yoga dev`. You're ready to start 🚀

## Bootstrap a ready-to-use project

- Start the bootstrapper
or

```bash
yarn create yoga
npm init yoga
```

- Choose the template you want to start with:

```bash
? Choose a GraphQL server template? (Use arrow keys)
❯ minimal-yoga (Basic starter template )
❯ minimal-yoga (Basic starter template)
db-yoga (Template with Prisma database support)
```

- Follow the CLI intructions
- Run `yarn dev`
- You're ready to start 🚀

0 comments on commit e1a8bdb

Please sign in to comment.