All Projects → msoedov → flask-graphql-example

msoedov / flask-graphql-example

Licence: MIT license
Example GraphQL application with Flask, pypy/python3 and MongoDB

Programming Languages

python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Makefile
30231 projects
shell
77523 projects

Example of small GraphQL app with Flask + Python3/PyPy3 + MongoDb

Build Status Code Issues

Quick start with docker

docker-compose build
docker-compose up

Optionally populate database

docker-compose run web pypy3 manage.py init

And then open http://localhost:5000/ui

Demo screen

Development workflow

Create a virtual environment with Python3 or PyPy3

Make sure you have running MongoDb instance either on localhost or

export DB_PORT_27017_TCP_ADDR='ip address'

Likewise you can use containerized Mongo but you will need to setup env variables as well

docker-compose build
docker-compose up db

Then you can install deps and run the python app

make req
python api.py

Miscellaneous

Auto format your code

make format

Nosetests with reload

make watch
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].