Skip to content

shivamgaur99/Restaurantly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restaurantly

Introduction

Restaurantly is a comprehensive restaurant management system built using Java and the Spring Boot framework. The system aims to streamline operations by managing menu items, orders, reservations, customers, and employees with ease. Whether it's for a small café or a large dining establishment, Restaurantly ensures smooth and efficient management in a real-time environment.

Features

  • Menu Management: Create, update, and delete menu items.
  • Order Processing: Place orders, manage order status, and track order history.
  • Customer Management: Maintain customer records, track preferences, and manage loyalty programs.
  • Employee Management: Manage staff information, roles, and schedules.
  • Reservation Management: Accept and manage table reservations.
  • Reporting and Analytics: Generate reports on sales, inventory, and other key metrics.

Technology Stack

  • Java
  • Spring Boot
  • React.js
  • MySQL Database

Project Structure

The project follows a modular structure, with each module responsible for a specific aspect of the restaurant management system:

  • Controller: Handles incoming HTTP requests.
  • Service: Contains business logic and interacts with repositories.
  • Model: Defines the structure of data entities.
  • Repository: Manages data access and persistence.

Usage

  1. Clone the Repository:

    git clone https://github.com/yourusername/Restaurantly.git
    
    

Installation

To run this project locally, follow these steps:

Prerequisites

  • Node.js and npm installed for the React frontend.
  • MySQL database setup.
  • Java and Maven installed for the Spring Boot backend.

Frontend (React)

  1. Clone the repository:

    git clone https://github.com/your/repository.git
  2. Navigate to the frontend directory:

    cd frontend
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm start

Database (MySQL)

  1. Make sure you have MySQL installed and running.

  2. Create a new database for the project.

  3. Update the database configuration in the backend application properties or environment variables if needed.

  4. Initialize the database schema and data if necessary.

Running the Spring Boot Project in Eclipse or Spring Tool Suite (STS)

To run the Spring Boot backend of this project in Eclipse or STS, follow these steps:

Prerequisites

  • Eclipse or Spring Tool Suite (STS) installed.
  • JDK (Java Development Kit) installed.

Steps

  1. Clone the repository:

    git clone https://github.com/your/repository.git
  2. Open Eclipse or STS.

  3. Import the backend project:

    • Click on File -> Import.
    • Choose Existing Maven Projects.
    • Navigate to the backend directory and select the pom.xml file.
    • Click Finish to import the project.
  4. Build the project:

    • Right-click on the project in the Project Explorer.
    • Select Run As -> Maven clean.
    • Then, right-click again and choose Run As -> Maven install.
  5. Run the Spring Boot application:

    • Navigate to the main class (Application.java or similar).
    • Right-click on the main class.
    • Select Run As -> Java Application.
  6. The backend server should now be running locally in Eclipse or STS on http://localhost:8080.

Now, the frontend, backend, and database are set up locally. You can access the application by visiting http://localhost:3000 for the React frontend and making requests to the backend running at http://localhost:8080.

Additional Notes

  • Adjust any necessary configurations within the project, such as database settings or application properties.
  • Ensure that port 8080 is not in use by other services to avoid conflicts.

Now, the backend server is running within Eclipse or STS, allowing you to interact with the APIs or connect it to the frontend of your project.

About

A system for order, menu, and reservation management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published