This project is centered around a Java-based application that primarily utilizes GraphQL for its API. In addition, RESTful API endpoints have been implemented for comparison purposes and to provide flexibility for different use cases.
- GraphQL API: A powerful and flexible API for querying and mutating data.
- RESTful API: Additional endpoints to support traditional REST operations and to enable comparisons with GraphQL.
- Java 17 or higher
- Maven or Gradle for dependency management
- A running instance of the database (e.g., MySQL, PostgreSQL)
- Clone the repository:
git clone https://github.com/didorg/product-service.git
- Navigate to the project directory:
cd product-service
- Build the project:
mvn clean install
or
gradle build
Update the application.properties file located in src/main/resources with your database and other configuration details.
- Start the application:
mvn spring-boot:run
or
gradle bootRun
- Access the APIs:
To query or mutate data using GraphQL, you can use tools like GraphiQL or Postman.
For RESTful operations, you can use standard HTTP methods (GET, POST, PUT, DELETE) via tools like Postman or curl commands.
We welcome contributions! Please see our CONTRIBUTING.md for guidelines on how to contribute to this project.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thanks to the open-source community for providing valuable resources and tools.
- Special thanks to the team members for their hard work and dedication.