Skip to content

A backend for an online monster store, built with Java 21 and Spring Boot. Supports product and review management via a REST API, ready to connect with a React + Vite frontend. Follows SOLID principles and a layered architecture for maintainability and scalability.

Notifications You must be signed in to change notification settings

brunasonda/monstershop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👹 Monster Shop - Backend

Welcome to Monster Shop!

This is the backend repository of an awesomely cool online store. 😎

Here you can manage products and reviews through a REST API built with Java + Spring Boot.


🚀 Technologies Used

  • Java 21
  • Spring Boot
  • MySQL
  • JPA / Hibernate
  • Maven
  • Manual CORS configuration
  • Postman (for testing before connecting the frontend)
  • Compatible with React + Vite frontend

🎯 Goal

Develop a functional backend that:

  • Allows listing, creating, editing, and deleting products 🛒
  • Allows viewing and creating reviews 📝
  • Connects with the existing frontend (once it works on Postman)

🧪 Available Endpoints

📦 Products

  • GET /api/products: List all products
  • GET /api/products/{id}: Get product details
  • POST /api/products: Create a product
  • PUT /api/products/{id}: Edit an existing product
  • DELETE /api/products/{id}: Delete a product

✍️ Reviews

  • GET /api/reviews/{productId}: Get reviews for a product
  • POST /api/reviews: Create a new review

🛠️ How to Run the Backend

  • Prerequisites: Java 21 installed
  • Configure the database connection in application.properties
  • Start the server

🌐 Connecting to the Frontend

Once everything works in Postman, you can connect the frontend by cloning this repo:

👉 https://github.com/P1-FemCoders-VLC/monster-ecommerce

Steps:

bash pnpm install
bash pnpm run dev

The frontend will run at: http://localhost:5173

✅ Best Practices

  • ✔️ Use of SOLID principles
  • ✔️ Layered architecture (controllers, services, repositories)

👹 Thanks for being part of this monstrous adventure! This project is just the beginning. Keep exploring, improving, creating, and sharing. We’d love to hear from you! Until next time, monster friend.



🧝‍✨ Author

Developed by: Bruna Sonda @ https://github.com/brunasonda

About

A backend for an online monster store, built with Java 21 and Spring Boot. Supports product and review management via a REST API, ready to connect with a React + Vite frontend. Follows SOLID principles and a layered architecture for maintainability and scalability.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages