https://github.com/geovation/graphqlwfs
A query middleware for quering WFS services
https://github.com/geovation/graphqlwfs
Last synced: about 1 year ago
JSON representation
A query middleware for quering WFS services
- Host: GitHub
- URL: https://github.com/geovation/graphqlwfs
- Owner: Geovation
- License: mit
- Created: 2019-11-01T11:22:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-10T09:24:37.000Z (over 5 years ago)
- Last Synced: 2025-04-04T18:11:19.397Z (about 1 year ago)
- Language: Python
- Size: 74.2 KB
- Stars: 1
- Watchers: 4
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQLWFS
A query middleware for quering WFS services
A prototype that will use GraphQL as a middletier to query WFS services.
live demo: https://us-central1-graphql-wfs.cloudfunctions.net/graphqlwfs
encrypt variable with
```
export OS_KEY=1234567890
export PROJECT=graphql-wfs
echo -n $OS_KEY | gcloud kms encrypt \
--plaintext-file=- \
--ciphertext-file=- \
--location=global \
--keyring=projects/$PROJECT/locations/global/keyRings/graphQL \
--key=projects/$PROJECT/locations/global/keyRings/graphQL/cryptoKeys/live | base64
```
To run in locally (without GCP tools)
```
echo OS_KEY=1234567890 > .env
docker-compose up
```
To run it locally (without GCP tools not docker)
```
python3 -m venv venv
export OS_KEY=1234567890
source venv/bin/activate
python -m pip install -r requirements.txt
python -m unittest --verbose # it runs the tests
python local.py # it runs a local server
```
Example:
```
curl 127.0.0.1:5000 -H "Content-Type: application/json" -d '{ hello(count: 5, propertyName: "Type", literal: "Education") }'
```