Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/obi1kenobi/graphql-compiler-cross-db-example
A demo of the GraphQL compiler's cross-database querying capabilities
https://github.com/obi1kenobi/graphql-compiler-cross-db-example
Last synced: 10 days ago
JSON representation
A demo of the GraphQL compiler's cross-database querying capabilities
- Host: GitHub
- URL: https://github.com/obi1kenobi/graphql-compiler-cross-db-example
- Owner: obi1kenobi
- License: apache-2.0
- Created: 2019-09-07T19:34:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T07:44:53.000Z (about 2 years ago)
- Last Synced: 2024-12-01T17:23:50.953Z (22 days ago)
- Language: Jupyter Notebook
- Size: 185 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQL compiler cross-database querying demo
A demo of the GraphQL compiler's cross-database querying capabilities.
The demo uses a dataset of countries, geographical regions, airports, airlines, and flights.
The data originates from the following open datasets:
- [OpenFlights](https://github.com/jpatokal/openflights)
- [Core Data's country codes dataset](https://github.com/datasets/country-codes)To get started, you'll need `docker-compose`, Python 3.6+, and `pipenv` installed.
Get started by running the following from the root directory of the repository:
```bash
# Start the Postgres and OrientDB containers.
docker-compose up -d# Set up all required Python libraries.
pipenv install --python="$(which python3)"
pipenv shell
```Then, after Pipenv has created your new shell with the required Python dependencies,
run the following inside it:
```bash
# Load the demo datasets into the databases.
# If this step fails, then tear down the database containers
# with "docker-compose down" and start from the top.
python -m demo.bootstrap# Start the Jupyter lab environment and open any of the notebooks to play around.
# 01_intro_demo and 02_macro_edges have pre-written queries for you to try running.
jupyter lab
```