An open API service indexing awesome lists of open source software.

https://github.com/plizarraga/microservices-spring-boot-products

This repository contains a Spring Boot Java microservice built to perform CRUD operations for managing products using GraphQL. The microservice is designed to connect to a PostgreSQL database, providing a robust and scalable solution for handling product data.
https://github.com/plizarraga/microservices-spring-boot-products

azure devops docker graphql java spring-boot

Last synced: 2 months ago
JSON representation

This repository contains a Spring Boot Java microservice built to perform CRUD operations for managing products using GraphQL. The microservice is designed to connect to a PostgreSQL database, providing a robust and scalable solution for handling product data.

Awesome Lists containing this project

README

          

# Products Microservice

![Java](https://img.shields.io/badge/Java-17-blue.svg)
![Spring Boot](https://img.shields.io/badge/Spring%20Boot-3.1.2-brightgreen.svg)
![GraphQL](https://img.shields.io/badge/GraphQL-v16.7.1-green.svg)
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-15.3-blue.svg)

Welcome to the Products Microservice repository! This microservice is built using Spring Boot Java and GraphQL, providing efficient CRUD (Create, Read, Update, Delete) operations for managing products. The microservice is designed to connect to a PostgreSQL database for secure and reliable data storage.

## Features

- **GraphQL API**: The microservice provides a powerful GraphQL API that allows flexible and intuitive querying of product data.
- **CRUD Operations**: Easily perform Create, Read, Update, and Delete operations on products.
- **PostgreSQL Integration**: The microservice seamlessly connects to a PostgreSQL database to ensure data persistence and integrity.
- **Scalable and Modular**: Built on Spring Boot, the microservice architecture is scalable and easy to maintain.
- **Unit Testing**: The codebase includes comprehensive unit tests to ensure reliable functionality.

## Getting Started

To get started with the Products Microservice, follow these steps:

1. **Prerequisites**: Ensure you have Java 17 and Maven installed on your machine.
2. **Database Setup**: Set up a PostgreSQL database and configure the connection properties in the `application.properties` file.
3. **Build**: Use Maven to build the project by running `mvn clean package`.
4. **Run**: Execute the JAR file created in the target folder with `java -jar target/products-microservice.jar`.

## API Documentation

The GraphQL API documentation can be accessed by starting the microservice and visiting `http://localhost:8090/graphql-ui` in your web browser.

## Contributing

We welcome contributions to improve and enhance the Products Microservice. If you find any issues or have new features to propose, please open an issue or submit a pull request.

## License

This microservice is open-source and distributed under the [MIT License](LICENSE). Feel free to use it, modify it, and share it with others.

---

Thank you for choosing the Products Microservice! We hope you find it valuable for managing your product data. If you have any questions or need assistance, please feel free to reach out.

Happy coding! 🚀