mirror of
https://github.com/graphql-python/graphene.git
synced 2025-06-05 14:13:11 +03:00
Added sample quick start page
This commit is contained in:
parent
f43584f77b
commit
55fa590d20
|
@ -17,8 +17,8 @@ layout: default
|
|||
</a>
|
||||
<nav id="page-nav">
|
||||
<a href="">Starwars Django Example</a>
|
||||
<a href="">Quickstart Guide</a>
|
||||
<a href="community" class="active">Community</a>
|
||||
<a href="/quickstart">Quickstart Guide</a>
|
||||
<a href="/community" class="active">Community</a>
|
||||
<a href="https://github.com/graphql-python/graphene/"><span class="github-icon">Github</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
|
@ -23,7 +23,7 @@ layout: default
|
|||
</div>
|
||||
<nav id="main-nav">
|
||||
<a href="">Starwars Django Example</a>
|
||||
<a href="">Quickstart Guide</a>
|
||||
<a href="community">Community</a>
|
||||
<a href="/quickstart">Quickstart Guide</a>
|
||||
<a href="/community">Community</a>
|
||||
<a href="https://github.com/graphql-python/graphene/"><span class="github-icon">Github</span></a>
|
||||
</nav>
|
||||
|
|
40
quickstart.md
Normal file
40
quickstart.md
Normal file
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
layout: page
|
||||
title: Quickstart Guide
|
||||
description: A Quick guide to Graphene
|
||||
---
|
||||
|
||||
Graphene is a powerful framework for creating GraphQL schemas easily in Python.
|
||||
|
||||
## Requirements
|
||||
|
||||
- Python (2.6.5+, 2.7, 3.2, 3.3, 3.4, 3.5, pypy)
|
||||
- Graphene (0.1+)
|
||||
|
||||
The following packages are optional:
|
||||
|
||||
- Django (1.6+)
|
||||
|
||||
|
||||
## Project setup
|
||||
|
||||
```bash
|
||||
# Create the project directory
|
||||
mkdir tutorial
|
||||
cd tutorial
|
||||
|
||||
# Create a virtualenv to isolate our package dependencies locally
|
||||
virtualenv env
|
||||
source env/bin/activate # On Windows use `env\Scripts\activate`
|
||||
|
||||
pip install graphene
|
||||
```
|
||||
|
||||
## Types
|
||||
|
||||
First we're going to define some GraphQL ObjectTypes that we'll use in our `Schema`:
|
||||
|
||||
```
|
||||
import graphene
|
||||
|
||||
```
|
Loading…
Reference in New Issue
Block a user