Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Oct 26, 2022
1 parent a223af4 commit 609ebc7
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@ Strawberry is built on top of Python鈥檚

Let鈥檚 create a new folder:

mkdir strawberry-demo
cd strawberry-demo
```bash
mkdir strawberry-demo
cd strawberry-demo
```

After that we need a new virtualenv:

python -m venv virtualenv
```bash
python -m venv virtualenv
```

Activate the virtualenv and then install strawberry plus the debug server.

source virtualenv/bin/activate
pip install 'strawberry-graphql[debug-server]'
```bash
source virtualenv/bin/activate
pip install 'strawberry-graphql[debug-server]'
```

## Step 2: Define the schema

Expand Down Expand Up @@ -117,11 +123,15 @@ schema = strawberry.Schema(query=Query)

Then run the following command

strawberry server schema
```bash
strawberry server schema
```

This will start a debug server, you should see the following output:

Running strawberry on http://0.0.0.0:8000/graphql 馃崜
```bash
Running strawberry on http://0.0.0.0:8000/graphql 馃崜
```

## Step 6: execute your first query

Expand Down

0 comments on commit 609ebc7

Please sign in to comment.