Coder Social home page Coder Social logo

ceshop's Introduction

簡易購物網站

使用 React + .Net5 開發

Demo

使用技術

前端

React

  • Material UI
  • Axios

後端

.Net5 Webapi

  • Swagger
  • Identity + Jwt Token + Refresh Token
  • EF Core(Code First)
  • Repository + UnitOfWork
  • Email Server
  • SpaServices
  • Image Server

網站架設

Amazon Web Services

  • EC2 Linux 2
  • RDS PostgreSQL
  • S3

資料庫架構

  • 商品與貨品規格關聯表 database1

  • 購物車與訂單關聯表 database2

使用方式

  1. 安裝Dotnet SDK
  2. 安裝Node.js

資料庫建立

  1. 安裝dotnet ef
dotnet tool install --global dotnet-ef --version 5.0.17
  1. 進入 EF 專案
cd .\src\CeShop.Data.EF\
  1. 至 DesignTimeCeShopDbContextFactory.cs 修改 db connection string
  2. 執行 ef-core-commands.bat
.\ef-core-commands.bat

後端服務啟動

  1. 進入 Api 專案
cd .\src\CeShop.Api\
  1. 修改 appsettings.json 設定

  2. 建置與啟動

dotnet build
dotnet run

前端服務啟動

  1. 進入 web 專案
cd .\src\CeShop.FrontWeb\ceshop-web\
  1. 安裝相關套件
npm install
  1. 啟動
npm start
  1. 查看網頁

http://localhost:5000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.