didorg / product-service

The Product Service project is a comprehensive Java-based application that demonstrates proficiency in implementing both GraphQL and RESTful APIs. This project highlights key skills in modern API development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Product Service

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.

Features

  • 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.

Getting Started

Prerequisites

  • Java 17 or higher
  • Maven or Gradle for dependency management
  • A running instance of the database (e.g., MySQL, PostgreSQL)

Installation

  1. Clone the repository:
    git clone https://github.com/didorg/product-service.git
    
  2. Navigate to the project directory:
cd product-service  
  1. Build the project:
mvn clean install

or

gradle build

Configuration

Update the application.properties file located in src/main/resources with your database and other configuration details.

Running the Application

  1. Start the application:
mvn spring-boot:run

or

gradle bootRun
  1. Access the APIs:

Usage

GraphQL API

To query or mutate data using GraphQL, you can use tools like GraphiQL or Postman.

RESTful API

For RESTful operations, you can use standard HTTP methods (GET, POST, PUT, DELETE) via tools like Postman or curl commands.

Contributing

We welcome contributions! Please see our CONTRIBUTING.md for guidelines on how to contribute to this project.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • Thanks to the open-source community for providing valuable resources and tools.
  • Special thanks to the team members for their hard work and dedication.

About

The Product Service project is a comprehensive Java-based application that demonstrates proficiency in implementing both GraphQL and RESTful APIs. This project highlights key skills in modern API development


Languages

Language:Java 100.0%