Skip to content

koritsu/graphql-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Example

This repository contains a basic example of implementing a GraphQL server using Java and Spring Boot. The content was created using ChatGPT-4.

Project Structure

  • src/main/java: Contains the Java source files.
    • controller: GraphQL controller.
    • model: Data models.
    • repository: Repository interfaces.
    • service: Service layer.
  • src/main/resources: Contains configuration files.
    • application.properties: Application configuration.
    • schema.graphqls: GraphQL schema definition.

Setup and Installation

  1. Clone the repository:
    git clone https://github.com/koritsu/graphql-example.git
    cd graphql-example
  2. Build the project using Gradle:
    ./gradlew build
  3. Run the application:
    ./gradlew bootRun

Usage

  • Access the GraphQL playground at http://localhost:8080/graphiql.
  • Example queries and mutations can be tested from the playground interface.
  • Test the application at http://localhost:8080.

Technologies Used

Java Spring Boot GraphQL Gradle H2 Database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published