https://github.com/devetek/flask-graphql-boilerplate
A Python 3.x flask graphql boilerplate
https://github.com/devetek/flask-graphql-boilerplate
flask graphql python
Last synced: about 2 months ago
JSON representation
A Python 3.x flask graphql boilerplate
- Host: GitHub
- URL: https://github.com/devetek/flask-graphql-boilerplate
- Owner: devetek
- Created: 2019-01-17T04:13:46.000Z (almost 7 years ago)
- Default Branch: dev
- Last Pushed: 2025-01-13T18:20:48.000Z (10 months ago)
- Last Synced: 2025-04-13T19:38:44.970Z (7 months ago)
- Topics: flask, graphql, python
- Language: Python
- Homepage: http://devetek.com/
- Size: 777 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Flask Graphql Boilerplate
Python flask graphql boilerplate, to help Devetek python developer to deliver project with standard graphql endpoint
## Prerequisite
- Python == 3.10.10
## Structure
```sh
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
```
## Development
To run service locally, follow steps below:
1. Execute command `make setup` to prepare virtual environment.
2. Execute command `make run` to run service in port `3000`.
- To use another port, use command `make run port=4000`.
- To run in production mode, use command `make run env=production`.
3. Open http://localhost:3000/graphql/ to test graphql endpoint, or open other URL if you set custom port.
## Todo
- [ ] Deploy to [dPanel](https://cloud.terpusat.com/)