TheFakeShop is a sample open source e-commerce website
CustomerSite || Backend || IdentityServer || AdminSite
- View all products
- View products by category
- Search product by name
- View product detail + review
- Add product to cart
- Rate & review product
- Create order from cart
- View orders history
- View detail order
- Modify products
- Modify categories
- View users
Clone the repository:
git clone https://github.com/fissama/TheFakeShop.git
- First, you must run the script CreateDatabaseScript.sql in ./src/TheFakeShop.Script
- Secondly, open Package Manager Console and run a below code:
Scaffold-DbContext "Server=localhost;Database=TheFakeShop;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -Force -OutputDir Models
From the command line:
cd TheFakeShop/src
dotnet restore
dotnet build
Before test, you must change .HasDefaultValueSql("(get_date())");
to .HasDefaultValueSql("(CURRENT_TIMESTAMP)");
in file TheFakeShopContext.cs of Backend/Models.Then, run the command line scripts to test:
cd TheFakeShop/src
dotnet test --no-build --verbosity normal
- Class diagram
- Database diagram