To implement a simplified version of the GraphQL serving application.
On the terminal
python -m venv env
.\env\Scripts\activate
- Created of Mongo DB in Cloud which is called as Mongo DB Atlas.
- Start the Mockoon Server and check the Port it is running, mostly in port 1337.
- Install the Python and python intrepreter.
- IDE for Coding, like Visual Code.
- Install python web framework FastAPI, Graphene, Starlette, Uvicorn, pymongo
pip install pymongo, uvicorn, graphene, fastapi
On the virtual Environment terminal
uvicorn app.main:app --reload
To Fetch and store the Mock Data from Mockoon server use below GET request
GET http://127.0.0.1:8000/fetch_and_store
To query the Data use the below playground which is mounted on the Graphene Starlette
GET http://127.0.0.1:8000/graphql/