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
cd spring-data-jpa-graphql-ucp-oracle
- Modify
src/main/resources/application.properties
to set values forspring.datasource.url
,spring.datasource.username
, andspring.datasource.password
- Run
mvn clean install
- Run
java -jar target/spring-data-jpa-graphql-oracle-0.0.1-SNAPSHOT.jar
- (In a separate terminal/console)
cd react-graphql
- Run
yarn add @apollo/client graphql
(this is only necessary once for the project) - Run
npm run build
- Run
npm start