在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):graphql-python/swapi-graphene开源软件地址(OpenSource Url):https://github.com/graphql-python/swapi-graphene开源编程语言(OpenSource Language):Python 68.7%开源软件介绍(OpenSource Introduction):GraphQL SWAPI using GrapheneThis is a integration example of Graphene in Django. View demo StructureAll the models and fixtures are based in the original swapi project. The schema (where all the magic happens) is in starwars/schema.py.
Deploying locallyYou can also have your own GraphQL Starwars example running on locally. Just run the following commands and you'll be all set! git clone [email protected]:graphql-python/swapi-graphene.git
cd swapi-graphene
# Install the requirements
pip install -r requirements_base.txt
# Collect static data
python manage.py collectstatic
# Setup the db and load the fixtures
python manage.py migrate Once you have everything done, just run: python manage.py runserver Open your browser and visit localhost:8080 et voilá! HerokuDeploying onTo get your own GraphQL Starwars example running on Heroku, click the button below: Fill out the form, and you should be cooking with gas in a few seconds. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论