Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonybenoy/grafql_py
https://github.com/tonybenoy/grafql_py
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tonybenoy/grafql_py
- Owner: tonybenoy
- Created: 2021-05-25T20:37:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T06:01:54.000Z (6 months ago)
- Last Synced: 2024-05-02T02:19:44.616Z (6 months ago)
- Language: Python
- Size: 39.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grafql_py
## How to run server
I have the images tagged to my local registry so run a local registry as shown below. In case you don't want to run your own registry do change the image name to a non registry tag.
`docker run -d -p 5000:5000 --name registry registry:2`
## To run the server
### Using docker
```
docker-compose build
docker-compose push
docker-compose up
```### Without Docker
```
python -m venv venv
source venv/bin/activate
pip install -r requirement.txt
gunicorn -b 0.0.0.0:8000 src.main:app -w 1 -k uvicorn.workers.UvicornWorker --preload
```Access the server [here](http://127.0.0.1:8000)
## Running testcases
### Using docker
```
docker run -it localhost:5000/tony/graphenepy python -m pytest -s test
```### Locally
```
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python -m pytest -s test
```### Github actions
See the test case status [here](https://github.com/tonybenoy/grafql_py/actions/workflows/python-app.yml)