https://github.com/ritwickdey/cake-shop
A sample Cake Shop Website built with ASP.NET Core (Multi-Page Application)
https://github.com/ritwickdey/cake-shop
asp-net asp-net-core asp-net-mvc cake-shop shopping shopping-cart
Last synced: 2 months ago
JSON representation
A sample Cake Shop Website built with ASP.NET Core (Multi-Page Application)
- Host: GitHub
- URL: https://github.com/ritwickdey/cake-shop
- Owner: ritwickdey
- License: mit
- Created: 2018-01-17T21:23:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-11T18:05:33.000Z (over 4 years ago)
- Last Synced: 2023-02-26T18:46:50.423Z (over 2 years ago)
- Topics: asp-net, asp-net-core, asp-net-mvc, cake-shop, shopping, shopping-cart
- Language: C#
- Size: 3.95 MB
- Stars: 50
- Watchers: 4
- Forks: 41
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cake Shop
A sample Cake Shop Website built with ASP.NET Core (Multi-Page Application)

## APP/Code Features
- Only Admin can perform Create/Edit/Delete cakes & manage Orders.
- Normal User can only can buy cakes & view their orders.
- Managing Cart System using cookie.
- Client Side & Server side validation,
- Cookie Based Authentication & Authorization - Not Session
- Login through either `Username` or `Email`.
- Responsive UI
- Repository Pattern
- Application Architecture is decoupled form ORM (Entity Framework)## Framework / Library
- ASP.NET Core 2.0 *(Backend)*
- Razor View Engine *(For generating markup)*
- Entity Framework Core *(ORM)*
- ASP.NET Identity *(Cookie Based Authentication & Authorization - Not Session)*
- AutoMapper *(For mapping into Domain Model & DTO)*
- jQuery & Bootstap 4## To run the project locally:
> admin account : `[email protected]` and Password: `Passw@rd!123` (You can change it from `appsettings.json` before apply `update database`)> Make sure, dotnet core SDK & npm is installed in your machine.
- **Using VS2017**
```
> git clone https://github.com/ritwickdey/Cake-Shop.git
> cd Cake-Shop/
```
- Now Open the `CakeShop.sln` through `VS2017`.
- Open `appsettings.json` & change the connection string. (But wait! you may not need to change it as this the default connection string of `SQL Server Express` that comes with `Visual Studio`).
- Hit `Ctrl+Shift+B` to build.
- Open `Package Manager Console` from `Tools` and enter `update-database`.
- Hit `Ctrl+F5` to run without debugging.- **Using CLI**
```
> git clone https://github.com/ritwickdey/Cake-Shop.git
> cd Cake-Shop/Cake-Shop/
> npm install
> dotnet restore
> set ASPNETCORE_ENVIRONMENT=Development
> set ConnectionStrings:DefaultConnection=""
> npm i webpack -g
> webpack --config webpack.config.js
> npm run build
> dotnet build
> dotnet ef database update
> dotnet run
```## Sceenshots




