Online Fast food Delievery Project in ASP.NET CORE | Day-1

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome my channel asp.net core and today I'm going to show you uh simple fast food delivery system in asp.net core so this is the simple demonstrations I will give you and after that I will show you the project details how to build that a fast food delivery system in asp.net core this is uh that's based on the entire architecture and you can say that this is the simple project in which I can create a simple layer based architecture and show some categories of categories and item details as well and some identities specification role specifications and uh and the payment card specifications so uh just I'm I'm going to show you the demonstrations of it at here here you can say that the header line you can say that is the logo and the car details uh without login and you can say that Anonymous user can visit that their website if you go for the detail section just go for your credentials and you can say that this is the registration process and if you are admin of the user you can just insert that item details like name description price category subcategory if it is spinous or not and account is also there and if you are a user then if you just go that section in the card so here we have that is the spicy shopping carts project and you can say that the total item in USD and welcome user is log out features like that and that is the pickup detail you can show that name phone date time additional instructions if you have and Order summary that is the product details a product uh amount is there and total amount is just there and I've just flash the order if you are an admin user then then you have to enter the categories like uh add some categories sub categories menu item list like the name price category and subcategories and the password list if you have you can you can check uh by the you can check order details as well and also you do not and you do not edit your order details but admin can change your order details as well so create a new account if you are a new user so just name email phone number street address city state postal code password and confirm password by using this these lines of code you have to enter into the system uh you or you can say that you are the authenticated user for the first online fast food delivery system so let's get started to design your fast food delivery system so guys create a new project that is the model view controllers so model view controller and select you can say that uh fast food so just you can use fast food dot web project so there is the name is the web 6.0 I will use and so here we have the fastboot.wap project and in this solution the fastboot.wap okay so the solution name is the same name of your project so there is no issue so add a new project name and the name is the class Library project and fast okay uh fast food Dot models so the name is the fastboot dot models so here we have the fastboot dot models in which you can add the models and the next one is the repositories okay so migration in the data context file is there so add a new project in the class Library project fast food Dot Repository so here we have a repository project and the next one is your service project so add a new project and that class Library password dot services okay so here we have the class name is there so okay so everything is clear so password dot service fastboot.paya fastboot.repository fastboot dot models is there so first of all just I am going to add a data context uh some uh some models like related items category and subcategory so the first model is in the project that is the category project so here we have category class and make it first of all public and in the category you can say that the first is the ID property of the category and the next one is the string title of the category and you know that the title is required property so just add required and this is The annotation okay and uh make some changes in the asp.net core 6.0 models as well as the in the four projects so first of all edit project files and here we have the null label is enabled so just you remove this from all these projects because I not just want to generate any warnings but if you if you want to take it then there is no problem Okay so but I but I in this all these projects I uh I would like to remove nullables okay so everything is clear now close all tabs in the models section just go for the category and here we have the title and title is also required and you know that the ID is the key property so just key ID and title is the enough for the category and if you want to take any required parameter like the created at and dates as well if you want to take it but in the next section I will add new class that is subcategory and in the subcategory here we have the public section and there is the integer ID property and there is the key so e is the value so the next one is string title and you know that the title is required and intelligence work it here and the next one is uh integer category ID and you know that the category is the table name so prop category as usual you know that the category ID is the foreign key in the table that is is in the subcategory so just close all these things and uh just next to add the next class that is items class so the next one is the item class so here we have to item and you know that the which property you have to add in the item that is the public prop integer ID and the next one is uh prop string name or you can say that item title and prop string description and the next one is prop double price and the next one is prop integer category ID crop integer sub category ID crop category category and here you can say that crop subcategory and here we have some subcategory okay so everything is fine in the item class so here we have a item okay also I use a application user in the in the class so add a new class and here you can say that application user that is the customer admin as well and application user class is actually inherited with that uh identity user so identity user and identity user is installed package Microsoft asp.net core dot identity dot Entity framework core so add a new models manage look at package browse identity and here we have identity that is Microsoft dot asp.net core dot identity so here we have the identities microsoft.asp.co.identity dot Entity framework core and the latest track is a six points but I want to take 6.0.11 and if your framework is working on 6.0 then you will go for the 6.0 the latest stable version okay so here we have the type of the name space that is identity user so just resolve the problem first of all and you know that identity user does not take any name property so just you can take name street address postal code city as well so a prop string that is the city and the next one is prop string address and the next one is the postal code you have to take it so string and the next one is the postal code so uh all these are their name City address postal code is it the next table you you should take that is the cart table so just add a new card details as at here so the card table is here and make it first of all public and public class card so in which you can take first of all ID and the next one is you can if you if you can see a card have uh so just just I want to open any card uh images okay so if you can see that the card details uh in the Google Images so uh if you should go for this and if you should go for this that is the product these are the products so these are you can say these These are the items so these are the item item price quantities uh you can take in the cart because the quantity is not uh undertaking in that product with the product so uh if you have if you want to take it like total so total is generated for the price multiplied by quantity so there is no need to add in the card details because total is a variable name you you should take it in the view model also so uh because uh cart is not getting any value in the total so if you should go for this and you if you should go for this you can take it okay Okay so okay you should go for this so here we have a apple juice grab juice so if you have the like price multiply by with the quantity and these are all details so you should take uh these property in the shopping cart so integer ID and you can take item id as well because Item ID is multiple in the card so you should take a item table and item items okay and you know that item ID is there so the next one is the user ID is also there for the particular card so just integer it's not an integer actually it's a string for the application user you can take it so here we have a ID item id item and uh these These are the application user ID you can you should take it here application user ID in the form of the string and go for public uh application user application user as well so here you can you should take ID item ID application user ID and the item ID is there so the next one is the count so just integer count or you should take quantity as at here so here we have ID item id item application user ID application user and you know that ID is the key value right here so if you should take any annotations and quantities must to add required attribute and you can say that minimum and maximum value minimum is one you should take it here so uh minimum length ish oops should one okay so minimum length is one so thank you thank you guys for watching this video and the next one is a holder order header and Order detail so in the next video I will uh I will explain about the order header and Order details
Info
Channel: ASP.NET MVC
Views: 45,483
Rating: undefined out of 5
Keywords: asp.net core project, asp.net core 6.0, Ecommerce, scratch project
Id: XWeu8DTsEpY
Channel Id: undefined
Length: 14min 55sec (895 seconds)
Published: Sat Nov 19 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.