https://github.com/omerjuve2023/graphspring
https://github.com/omerjuve2023/graphspring
graphics graphql java postgresql rest-api spring-boot
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/omerjuve2023/graphspring
- Owner: OmerJuve2023
- Created: 2024-06-19T01:46:04.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T04:09:40.000Z (almost 2 years ago)
- Last Synced: 2025-10-22T10:46:18.940Z (8 months ago)
- Topics: graphics, graphql, java, postgresql, rest-api, spring-boot
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Spring
This project is a simple example of how to use GraphQL with Spring Boot.
## Project Overview
This project is a simple example of how to use GraphQL with Spring Boot. It has a single endpoint that allows you to
query a list of books and authors.
## Getting Started
### Prerequisites
- Java 17
- Maven
- Docker
## Installing
1. Clone the repository:
```bash
git clone https://github.com/OmerJuve2023/GraphSpring.git
```
2. Build the project:
```bash
mvn clean install
```
## Run the project with Maven
```bash
mvn spring-boot:run
```
## Run the project with Docker
1. Build the Docker image:
```bash
docker build -t graphql-spring .
```
2. Run the Docker container:
```bash
docker run -p 8080:8080 graphql-spring
```
## Running the tests
Run the following command to run the tests:
```bash
mvn test
```