Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Learning Material for GraphQL+OracleDB. Run in the cloud☁️ or Docker🐳. Batteries included.

License

Notifications You must be signed in to change notification settings

sblack4/oracledb-graphql-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Oracle db with GraphQl πŸš€

GraphQL seems cool. Oracle database is cool. Let's combine them.

About

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! ✌️

Getting Started

  • 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)

tl:dr;

  1. Watch the recording of Oracle Friday Stand-Up - Database Cloud Service
  2. Clone this Repo with git clone https://github.com/unofficialoraclecloudhub/oracledb-graphql-demo.git
  3. Head to unofficialoraclecloudhub.github.io/oracledb-graphql-demo/ and follow the directions in the docs

Test with 🐳 Docker 🐳

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

Whats actually in here?

$ 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

Acknowledgements ❀️

The open source community has been overly generous with software and documentation (as always)

Special thanks to

About

Learning Material for GraphQL+OracleDB. Run in the cloud☁️ or Docker🐳. Batteries included.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published