Welcome to the backend of the Pizza Shop Digital Ordering System! This project is a digital ordering system for a pizza shop, built using Spring Boot, Maven, and MySQL. The backend handles the business logic, database interactions, and provides a RESTful API for the frontend.
- User authentication and authorization
- Menu management (CRUD operations)
- Order processing and management
- Integration with a MySQL database
- RESTful API for communication with the frontend
Before you begin, ensure you have the following installed:
- Java Development Kit (JDK) 17 or later
- Apache Maven
- MySQL Database
Follow the steps below to set up and run the Pizza Shop backend on your local machine.
-
Clone the repository:
git clone https://github.com/your-username/pizza-shop-backend.git
-
Navigate to the project directory:
cd pizza-shop-backend
-
Build the application:
mvn clean install
-
Create a MySQL database for the project.
CREATE DATABASE pizzaShop;
-
Update the application.properties file with your database connection details:
spring.datasource.url=jdbc:mysql://localhost:3306/pizzaShop spring.datasource.username=your_username spring.datasource.password=your_password spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
Run the SQL script to create the database schema:
mysql -u root -p pizzaShop < config/sql/createsql.sql
-
Run the application:
mvn spring-boot:run or mvn clean install cd target java -jar orderManagementApp-0.0.1-SNAPSHOT.jar
This project is licensed under the MIT License. See the LICENSE file for details.