From e1a8bdb43cca51986a36feb319296be51c697537 Mon Sep 17 00:00:00 2001 From: Flavian DESVERNE Date: Tue, 5 Mar 2019 17:33:52 +0100 Subject: [PATCH] Update getting started --- docs/2-getting_started.mdx | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/docs/2-getting_started.mdx b/docs/2-getting_started.mdx index 0f1518f..6d3be49 100644 --- a/docs/2-getting_started.mdx +++ b/docs/2-getting_started.mdx @@ -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 🚀