Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RestaurantMS 🍽️

A simple Restaurant Management System built with ASP.NET Core MVC and Entity Framework Core.
The project is designed to demonstrate the basic workflow of managing a restaurant's products, categories, ingredients, and orders.


πŸ“Œ Project Overview

This system allows restaurant staff to:

  • Manage Products and Categories.
  • Track Ingredients used in each product.
  • Create and manage Orders.
  • Relate Orders with specific Products.

The goal is to build a simple, clean system that represents a real-life restaurant scenario.


πŸ—„οΈ Database Design

The database follows a relational model to cover all entities of the restaurant:

  • Category ↔ Product: One-to-Many (each product belongs to one category).
  • Product ↔ Ingredient: Many-to-Many (through ProductIngredient).
  • Order ↔ Product: Many-to-Many (through OrderItem).
  • User ↔ Order: One-to-Many (each user can place multiple orders).

ER Diagram: ER Diagram


Technologies Used

  • C# / ASP.NET Core MVC
  • Entity Framework Core
  • SQL Server
  • Bootstrap, HTML, CSS

Project Structure

RestaurantMS/
β”œβ”€β”€ Areas/
β”‚   └── Identity/       # Identity (Authentication & Authorization) scaffolding
β”‚       β”œβ”€β”€ Pages/      # Razor Pages for login, register, manage account, etc.
β”‚       └── Data/       # IdentityDbContext & migrations related to Identity
β”œβ”€β”€ Controllers/        # MVC Controllers (Product, Category, Ingredient, Order, etc.)
β”œβ”€β”€ Models/             # Entity Models (Product, Category, Ingredient, Order, ApplicationUser)
β”œβ”€β”€ ViewModel/          # ViewModels like OrderVM for passing combined data to Views
β”œβ”€β”€ Data/               # DbContext, Repositories, and EF Core Migrations
β”œβ”€β”€ Views/              # Razor Views for each controller
β”œβ”€β”€ wwwroot/            # Static files (CSS, JS, images, ER Diagram, etc.)
β”œβ”€β”€ Program.cs          # Application entry point & service configuration
└── appsettings.json    # Database connection strings & app configuration

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages