Skip to content

Example using React (with Apollo) to make GraphQL call to Spring Boot Data JPA backed by Oracle and UCP

Notifications You must be signed in to change notification settings

paulparkinson/react-graphql-springboot-jpa-oracle-ucp-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example using React (with Apollo) to make GraphQL call to Spring Boot Data JPA backed by Oracle via UCP

See soon to be released blog under: https://blogs.oracle.com/authors/paulparkinson

Instructions

  1. cd spring-data-jpa-graphql-ucp-oracle
  2. Modify src/main/resources/application.properties to set values for spring.datasource.url, spring.datasource.username, and spring.datasource.password
  3. Run mvn clean install
  4. Run java -jar target/spring-data-jpa-graphql-oracle-0.0.1-SNAPSHOT.jar
  5. (In a separate terminal/console) cd react-graphql
  6. Run yarn add @apollo/client graphql (this is only necessary once for the project)
  7. Run npm run build
  8. Run npm start

A browser window should open to http://localhost:3000/ which is a React app that will use Apollo to make a GraphQL query against a Spring Boot service running on localhost:8080 which in turn uses JPA to query an Oracle database via a connection obtained from UCP.

About

Example using React (with Apollo) to make GraphQL call to Spring Boot Data JPA backed by Oracle and UCP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published