https://github.com/ssobue/graphsql-rest-demo
https://github.com/ssobue/graphsql-rest-demo
java spring-boot spring-graphql
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ssobue/graphsql-rest-demo
- Owner: ssobue
- Created: 2025-10-06T10:54:43.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2026-04-27T12:11:37.000Z (about 2 months ago)
- Last Synced: 2026-04-27T14:13:57.176Z (about 2 months ago)
- Topics: java, spring-boot, spring-graphql
- Language: Java
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# GraphSQL REST Demo
Minimal Spring Boot 3.5 project that exposes both REST and GraphQL endpoints, intended as a reference for integrating traditional HTTP controllers with schema-driven resolvers backed by the same service layer.
## Prerequisites
- JDK 25 (Temurin recommended)
- Maven 3.9+
## Getting Started
```bash
mvn spring-boot:run
```
The application starts on `http://localhost:8080`. Add REST controllers or GraphQL schema files under `src/main/resources/graphql` to extend the API surface.
## Build & Test
```bash
mvn clean verify
```
Runs compilation, unit tests, and integration/slice tests following the CI workflow in `.github/workflows/main.yaml`. For quick feedback loops use `mvn test`; for packaging artifacts use `mvn clean package -DskipTests`.
## Project Layout
- `src/main/java` — Application code rooted at `dev.sobue.demo`
- `src/main/resources` — Configuration (`application.yaml`), GraphQL schemas, static assets, templates
- `src/test/java` — JUnit 5 tests mirroring the main package structure
- `target/` — Build outputs (ignored in VCS)
## Contributing
Read `AGENTS.md` for repository guidelines covering structure, coding style, testing, and pull request expectations. PRs should document verification steps and link related issues when applicable.
## License
This project is distributed under the MIT License unless otherwise noted.