Skip to content

MinhNguyenCS/PizzaManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ• Akatsuki Pizza Management

Welcome to the Akatsuki Pizza Management System! This project helps pizza store owners and chefs efficiently manage toppings and pizzas. Built with a modern Java Spring Boot backend and a HTML, CSS, JavaScript frontend, it provides an intuitive interface for handling pizza creations.

🌍 Website: akatsukipizza.com

πŸš€ Technologies Used

Frontend:

  • 🎨 HTML, CSS, JavaScript - For building the user interface
  • πŸ–Ό Bootstrap - For a responsive and beautiful UI

Backend:

  • β˜• Java Spring Boot - RESTful API development
  • 🐘 MySQL - Relational database for storing pizzas and toppings
  • 🐳 Docker - Containerized database setup
  • πŸ›  Spring Data JPA - For easy database interactions

Other Tools:

  • πŸ— Maven - Dependency management
  • πŸ”— Git - Version control

πŸ“œ Features

Topping Management (Owner)

βœ… View a list of available toppings
βœ… Add new toppings
βœ… Delete existing toppings
βœ… Update existing toppings
❌ Prevent duplicate toppings

Pizza Management (Chef)

βœ… View existing pizzas and their toppings
βœ… Create new pizzas and assign toppings
βœ… Delete pizzas
βœ… Update pizza toppings
βœ… Modify toppings on an existing pizza
❌ Prevent duplicate pizza names


πŸ›  Setup & Installation

1️⃣ Clone the Repository

  git clone https://github.com/MinhNguyenCS/PizzaManagement.git
  cd PizzaManagement

**2️⃣ Install Java & Maven **

Ensure you have Java 17 and Maven installed. Check your Java and Maven version:

java -version
mvn -version

**3️⃣ Backend Setup **

Database Setup (Docker)

If you prefer setting up the database manually, use the provided SQL script above. Ensure Docker is running for MySQL.

docker run --name pizza-db -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=root -p 3306:3306 -d mysql:latest

Run Spingboot

cd backend
mvn clean install
mvn spring-boot:run

4️⃣ Frontend Setup

Update the api calls in js files to https://localhost:9111/pizza/api/

cd frontend
open login.html

πŸ§ͺ Running Tests

Backend Tests (Spring Boot JUnit)

cd backend
mvn test

πŸ“Œ API Endpoints

Toppings API

Method Endpoint Description
GET /topping Get all toppings
POST /topping/adding Add a new topping
POST /topping/update Update a topping
POST /topping/delete/{id} Delete a topping

Pizzas API

Method Endpoint Description
GET /chef Get all pizzas
POST /chef/adding Add a new pizza
POST /chef/update Update a pizza
POST /chef/delete/{id} Delete a pizza

🌟 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.


πŸ“„ License

MIT License. See LICENSE file for details.


πŸ’Œ Contact

πŸ“§ Email: mknguyen.dev@gmail.com
πŸ™ GitHub: MinhNguyenCS
🌍 Website: pizzamanagement.com

About

This project helps pizza store owners and chefs efficiently manage toppings and pizzas. Built with a modern Java Spring Boot backend and a HTML, CSS, JavaScript frontend, it provides an intuitive interface for handling pizza creations.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors