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.
- Java 21
- Spring Boot
- MySQL
- JPA / Hibernate
- Maven
- Manual CORS configuration
- Postman (for testing before connecting the frontend)
- Compatible with React + Vite frontend
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)
- 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
- GET
/api/reviews/{productId}
: Get reviews for a product - POST
/api/reviews
: Create a new review
- Prerequisites: Java 21 installed
- Configure the database connection in
application.properties
- Start the server
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
- ✔️ 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.
Developed by: Bruna Sonda @ https://github.com/brunasonda