Python flask graphql boilerplate, to help Devetek python developer to deliver project with standard graphql endpoint
- Python == 3.10.10
root/
├── config # Configuration .ini, use env variable $ENVIRONMENT to select file
├── scripts # External scripts, to support development, automation or production
├── shared # Library code that's ok to use by a cross applications
├── gqlserver # Graphql code implementation
To run service locally, follow steps below:
- Execute command
make setup
to prepare virtual environment. - Execute command
make run
to run service in port3000
.- To use another port, use command
make run port=4000
. - To run in production mode, use command
make run env=production
.
- To use another port, use command
- Open http://localhost:3000/graphql/ to test graphql endpoint, or open other URL if you set custom port.
- Deploy to dPanel