Giter Site home page Giter Site logo

product-manager's Introduction

Product Manager

Spring Boot CRUD Application

This repository contains a simple Spring Boot application implementing CRUD (Create, Read, Update, Delete) operations for managing categories and products. The application is built on the Spring framework and uses a PostgreSQL database.

Project Structure

Controller:

  • CategoryController: Handles requests related to categories.
  • ProductController: Manages product-related requests.

DTO (Data Transfer Object):

  • ProductDTO: A DTO for transferring product-related data.

Entity:

  • Category: Represents a category entity.
  • Product: Represents a product entity, including a many-to-one relationship with Category.

Repository:

  • CategoryRepository: JPA repository for the Category entity.
  • ProductRepository: JPA repository for the Product entity.

Service:

  • CategoryService: Provides business logic for category-related operations.
  • ProductService: Manages product-related business logic, including creating, reading, updating, and deleting products.

How to Run

Endpoints

Categories:

  • GET /categories: Retrieve all categories.
  • DELETE /categories/delete/{id}: Delete a category by ID.

Products:

  • POST /products: Create a new product.
  • GET /products: Retrieve all products.
  • GET /products/category/{id}: Retrieve products by category ID.
  • PUT /products: Update a product.
  • DELETE /products/delete/{id}: Delete a product by ID.

Contributing

Feel free to fork this repository, make changes, and submit a pull request. Contributions are welcome!

Contact

If you have any questions or suggestions, feel free to reach out to me at [email protected] or through my GitHub page.

product-manager's People

Contributors

drdmlg avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.