A walk in GraphQL
Day 4 exercise - Python
Read the instructions on the Day 4 exercise definition
HINT (Optional):
This patch contains an example of the code applied to createSkill, in order to reach the 3 different strategies for error handling.
- 
    Apply the following “hint” git patch: error_handling.patch. From command line: git apply error_handling.patch
Run the server
This exercise is prepared to work with Python 3, with SQLite and SQAlchemy as ORM
- open a terminal
- go to the Python exercise directory
- run [pip][pip3] install virtualenvto install it. It is used to create isolated Python environments
- run virtualenv venvto create the venv environment
- 
    Activate virtual environment: - On Windows run venv\Scripts\activate.bat(deactivate.batto deactivate the environment).
- On Linux run source env/bin/activate(deactivateto deactivate the environment)
 
- On Windows run 
- run [pip][pip3] install -r requirements.txtto install the needes packages if you didn’t before
- run uvicorn app:appto start the GraphQL server (uvicorn [file_name}:[app_name])
- open your browser and type http://localhost:8000/to display the GraphQL playground so you can run the queries against the server
The project
- SQLite Data source (../datasource/data.db)
- Server app
- Schemas
- Resolver map
- Models
- db abstraction