Added sample quick start page

This commit is contained in:
Syrus Akbary 2015-10-06 21:52:35 -07:00
parent f43584f77b
commit 55fa590d20
3 changed files with 44 additions and 4 deletions

View File

@ -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>

View File

@ -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
View 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
```