Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 2.72 KB

README.md

File metadata and controls

60 lines (45 loc) · 2.72 KB

Pizza Creed is a pizza bakery in Galle Fort. They don't run a pizza restaurant as usual pizza makers. Pizza Creed prepares pizza for orders only.

Table of Contents

Introduction

Pizza Creed is a Spring Boot application providing RESTful APIs for managing pizza orders. It includes functionalities such as listing available pizzas, creating shopping baskets, managing basket items, and checking out orders.

Setup

Prerequisites

Ensure you have the following installed on your system:

Database Configuration

  1. Create a MySQL database for the application with the name pizzacreed.
  2. Navigate to src/main/resources and locate the application.properties.template file.
  3. Duplicate the application.properties.template file and remove the .template extension, creating a new file named application.properties.
  4. Open the application.properties file in a text editor.
  5. Update the file with your database details, including the username and password.

Running the Application

Open a terminal and navigate to the project directory.

Run the following commands:

./mvnw clean install
./mvnw spring-boot:run

(On Windows, use mvnw instead of ./mvnw)

The application should now be running at http://localhost:8080.

Endpoints

Refer to the Postman Collection for detailed API endpoints and sample requests.

Postman Collection

Explore and test the API using the Postman Collection.

Documentation

Check out the detailed API documentation on Postman Documentation.

Admin Panel

The admin panel can be accessed at http://localhost:8080/adminlogin with the following credentials:

-Username: pizza-gallefort-9911. -Password: 1919gallepizzafort