You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a FullStack playground using FastAPI and GraphQL and Ariadne :rocket:.
5
+
<palign="center">
6
+
<em>Generate a FullStack playground using FastAPI and GraphQL and Ariadne β‘</em>
7
+
</p>
6
8
7
9
This Repository is based on this Article [Getting started with GraphQL in Python with FastAPI and Ariadne](https://www.obytes.com/blog/getting-started-with-graphql-in-python-with-fastapi-and-ariadne), Read Article to know how to use it.
8
10
9
-
## Overview
11
+
## Overview π
10
12
11
13
- FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
12
14
- GraphQL used to create a schema to describe all the possible data that clients can query through that service. A GraphQL schema is made up of object types, which define which kind of object you can request and what fields it has.
13
15
- Ariadne is a Python library for implementing GraphQL servers using schema-first approach.
14
16
15
17
## Features
16
18
17
-
- Full **Docker** integration (Docker based).
19
+
- Full Docker integration (Docker based).
20
+
- Docker Compose integration and optimization for local development.
21
+
- Production ready Python web server using Uvicorn and Gunicorn.
18
22
-**GraphQL** playground based on Graphene and Ariadne.
19
23
-**Docker Compose** integration and optimization for local development.
20
24
-**Production ready** Python web server using Uvicorn.
@@ -27,11 +31,6 @@ This Repository is based on this Article [Getting started with GraphQL in Python
- We have the Dockerfile created in above section. Now, we will use the Dockerfile to create the image of the FastAPI app and then start the FastAPI app container.
@@ -77,36 +61,6 @@ $ make start
77
61
78
62
While i use `HTTPX` an HTTP client for Python 3, to test the API, most of the tests are using a live log thats why need before to run a server using `uvicorn` and migrate the database, then you will have the ability to run the tests. To have a clean environment, recommended to use Docker for that, when you start the containers try to open the application container and then run `pytest` to test the API.
|[FastAPI](https://fastapi.tiangolo.com/)| FastAPI is a modern, fast (high-performance), web framework for developing APIs with Python 3.6+ based on standard Python type hints. |
98
-
|[GraphQL](https://graphql.org/)| GraphQL used to create a schema to describe all the possible data that clients can query through that service. A GraphQL schema is made up of object types, which define which kind of object you can request and what fields it has. |
99
-
|[Ariadne](https://ariadnegraphql.org/)| Ariadne is a Python library for implementing GraphQL servers using schema-first approach. |
100
-
101
-
## Contributing
102
-
103
-
- If you have any questions or suggestions, please open an issue or create a pull request.
104
-
- If you are a contributor, please check out:
105
-
- Is your pull request or issue relate with FastAPI?
106
-
- Is your pull request or issue relate with GraphQL?
107
-
- And make sure you take a look at the schema of the GraphQL playground. [schema.graphql](graphql/schema.graphql)
108
-
- Also for People who gonna add a new features or fix somethings please make sure that its build on Docker.
109
-
110
64
## License
111
65
112
-
This project is licensed under the terms of the MIT license.
66
+
This project is licensed under the terms of the MIT license.
0 commit comments