Skip to content

Project in the Rookie program at Nash Tech, built with IdentityServer4, ASP Core API, React and Clean Architecture

License

Notifications You must be signed in to change notification settings

vtoan/fashion-ecom-ns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment Requirement

Build an ecommerce web site with minimum functionality below:

For customers:

  • Home page: category menu, features products
  • View products by category
  • View product details
  • Product rating
  • Register
  • Login/Logout
  • Optional (shopping cart, ordering)

For admin:

  • Login/logout
  • Manage product categories (Name, Description)
  • Manage products (Name, Category, Description, Price, Images, CreatedDate, UpdatedDate)
  • View customers

Feature

For customer site

  • View products by category.
  • Search products with product name.
  • Sort products with price.
  • Paging.
  • View product details.
  • Chosse Size of product to Add To Cart.
  • View gallery mage of product.
  • Product rating.
  • Shopping cart page.
  • Checkout page.
  • Login/Logout

For admin site

  • View products (include Filter, Sort, Search)
  • Create/Edit/Delete product (include manage Size, Gallery)
  • View categories (include Filter by Type)
  • Create/Edit/Delete category
  • View current users
  • Login/Logout

Fashion Project


I. Backend Project (.NETCore Api)

1. Using

  • .NET 5.0 (with API Project Template)
  • Entity Framework 6
  • AutoMapper 7
  • Identity intergate IdentityServer 4
  • Swagger

2. Architecture

Structure

BackEnd Project

ERD

Image Erd

Service Class Diagram

Image Service

3. Set up

  1. Restore packages in projects with Dotnet CLI:
dotnet restore 
  1. Change Client URLs in path ../Core/appsettings.json (if run it on diffrent host/domain)
  2. Change ConnectionStrings in path ../Core/appsettings.json

TIP. Use EF Migrations on different Assembly

  • On Assembly contain BbContext, with "Core" is WebApi Project (Start-Up Project) Add migrations
dotnet ef migrations add Init -s ../Core

Database update

dotnet ef database update -s ../Core

II. Customer Site (.NETCore Mvc)

1. Using

  • Dependency Injection (Services).
  • Partial View.
  • Tag Helpper.
  • View Component.
  • Session Storage.

2. Resource reference

3. Set up

  1. Restore packages in projects with Dotnet CLI:
dotnet restore 
  1. Change Backend URLs and Image Res in path ../CustomerSite/appsettings.json (if run it on diffrent host/domain)

III. Admin Site (ReactJS)

1. Using

  • React 17.0.2
  • Intergate IdentityServer 4
  • Redux

2. Resource reference

3. Set up

  1. Install packages in project with Bash:
npm install 
  1. Change Backend URLs and Image Res in path ../config.js (if run it on diffrent host/domain)
  2. Change Client Config in path ../services/authService.js.

About

Project in the Rookie program at Nash Tech, built with IdentityServer4, ASP Core API, React and Clean Architecture

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published