GraphQL seems cool. Oracle database is cool. Let's combine them.
These materials go along with the Oracle Friday Stand-Up - Database Cloud Service Given by @sblack4. They are free to take and use but we provide no warranty per the MIT LICENSE but feel free to submit an issue or a pull request! I love solving problems and meeting other nerdy devs! βοΈ
- Connect to Oracle Database with oracledb (a π₯ database)
- Build SQL Queries with knex (think: ORM)
- Convert GraphQL and SQL with join monster (GraphQL <-> SQL translator)
- Serve the GraphQL with koa (basically express-lite)
- Visualize cool GraphQL browser with graphiql (execute graphql queries in the browser)
- Watch the recording of Oracle Friday Stand-Up - Database Cloud Service
- Clone this Repo with
git clone https://github.com/unofficialoraclecloudhub/oracledb-graphql-demo.git
- Head to unofficialoraclecloudhub.github.io/oracledb-graphql-demo/ and follow the directions in the docs
If you have docker, you can run database and the server
Docker images for Oracle Databse 12c and node 6 are provided in the Docker folder
The easiest way to build them is
cd Docker
docker-compose build
docker-compose up
$ tree -d -I node_modules
.
βββ Docker # all the files and binaries to build
βΒ Β βββ db # the docker images
βΒ Β βΒ Β βββ oracle-sql # one with oracle database xe 12c
βΒ Β βββ web # the other with node 6 & the oracle instantclient libraries
βββ docs # the docs static site (Gatsby)
βΒ Β βββ content
βΒ Β βΒ Β βββ lessons
βΒ Β βΒ Β βββ posts
βΒ Β βββ data
βΒ Β βββ public
βΒ Β βΒ Β βββ about
βΒ Β βΒ Β βββ categories
βΒ Β βΒ Β βΒ Β βββ tech
βΒ Β βΒ Β βββ lesson-five
βΒ Β βΒ Β βββ lesson-four
βΒ Β βΒ Β βββ lesson-one
βΒ Β βΒ Β βββ lesson-six
βΒ Β βΒ Β βββ lesson-three
βΒ Β βΒ Β βββ lesson-two
βΒ Β βΒ Β βββ logos
βΒ Β βΒ Β βββ post-one
βΒ Β βΒ Β βββ static
βΒ Β βββ src
βΒ Β βΒ Β βββ components
βΒ Β βΒ Β βΒ Β βββ About
βΒ Β βΒ Β βΒ Β βββ Disqus
βΒ Β βΒ Β βΒ Β βββ Layout
βΒ Β βΒ Β βΒ Β βββ PostListing
βΒ Β βΒ Β βΒ Β βββ PostTags
βΒ Β βΒ Β βΒ Β βββ SocialLinks
βΒ Β βΒ Β βββ layouts
βΒ Β βΒ Β βΒ Β βββ css
βΒ Β βΒ Β βββ pages
βΒ Β βΒ Β βββ templates
βΒ Β βββ static
βΒ Β βββ logos
βββ src # the graphql app
βββ common
βββ data # you can do the same thing with sqlite
βΒ Β βββ demo-data-csv # and maybe postgres (I have not tested)
βΒ Β βββ postgress
βΒ Β βββ sqllite
βββ schema-basic
βββ schema-paginated
βββ test
45 directories
The open source community has been overly generous with software and documentation (as always)
Special thanks to
- oracle/node-oracledb (also known as just
oracledb
) - stems/join-monster-demo
- MaksymBilenko/docker-oracle-12c
- Github
- Gatsby