Skip to content

rd003/BookShoppingCart-Mvc

Repository files navigation

BookShoppingCartMvc (A basic e-comm system for beginners)📚🛒

It is a source code of the youtube tutorial on book shopping cart in .net core mvc. Initially it was designed to explain how shopping cart 🛒 works in dot net core mvc. But now it has more features except payment gateway. A ⭐ in repository is highly appreciated, helps to promote my content.

📢 Initially , this project was built with .net 7. But it is Upgraded to .net 9.0. now and I will try to keep it up to date.

Tech stack 🧑‍💻

  • Dotnet core mvc (.Net 9)
  • MS SQLServer 2022 (Database)
  • Entity Framework Core (ORM)
  • Identity Core (Authentication)
  • Bootstrap 5 (frontend)

Tools I have used and their alternative

  • Visual Studio 2022 (Alternatives (.NET SDK + VS Code or .NET SDK + JetBrains Rider)
  • Microsoft Sql Server Management Studio (Alternative Azure data studio or you can just execute sql from terminal)

Note: Every tool and tech is free for personal use.

Video tutorial 📺

Youtube playlist

How to run the project?🌐

  1. Open the command prompt. Go to a directory where you want to clone this project. Use this command to clone the project.
git clone https://github.com/rd003/BookShoppingCart-Mvc
  1. Go to the directory where you have cloned this project, open the directory BookShoppingCart-Mvc. You will find a file with name BookShoppingCartMvc.sln. Double click on this file and this project will be opened in Visual Studio.

  2. Open appsettings.json file and update connection string.

"ConnectionStrings": {
  "conn": "data source=your_server_name;initial catalog=MovieStoreMvc; integrated security=true;encrypt=false"
}
  1. Run the project.

📢 When you run the project for the first time, it will do following things:

  • It will generate the database
  • It will seed some data
  • It will create an account for admin

How to logged-in with admin account?? 🧑‍💻🧑‍💻

Click on the link named login and get logged-in with these credentials.

username: admin@gmail.com

password: Admin@123

Screenshots

1.Homepage

homepage

2.Homepage continued

homepage2

3.Login

login

4.Registration

registration

5.Add To Cart

add-to-cart

6.Cart

cart

7.Checkout

cart

8.Order success

order_suceess

9.Admin Login

Admin Login

10.Admin Dashboard

Admin Dashboard

11.Orders

Orders

12.Order Detail

Order Detail

13.Update Order Status

Update Order Status

14.Display Stock

Display Stock

15.Update Stock

Update Stock

16.Display Genre

Display Genre

17.Add Genre

Add Genre

18.Update Genre

Update Genre

19.Display Books

Display Books

20.Add Book

Add Book

21.Update Book

Update Book

22.Top Selling Books

Top Selling Books

Thanks

If you find this repository useful, then consider to leave a ⭐.

Connect with me

👉 YouTube: https://youtube.com/@ravindradevrani

👉 Twitter: https://twitter.com/ravi_devrani

Become a supporter ❣️: You can buy me a coffee 🍵 : https://www.buymeacoffee.com/ravindradevrani

Thanks a lot 🙂🙂