Giter Site home page Giter Site logo

verysimpleshoppingcart's Introduction

動機

銜接期不知道要寫什麼就先隨便寫寫(連Naming都很醜的那種)

拿來複習 .Net Framework MVC

還有學習使用客製Authorize Filter搭配Session來做登入驗證

使用到的技術

前端:Razor、jQuery、Ajax

後端:C#(.Net Framework MVC)

DataBase:Sql Server

Files

VerySimpleShoppingCart

├─shoppingCart.sln

└─shoppingCart

├─Controllers

│   ├─ProductController.cs // Admin端Controller

│   ├─LoginController.cs // 選擇登入哪端的Controller

│   └─ClientController.cs // 客戶端Controller

│

├─Models

│   ├─Client

│   │   ├─User.cs // 帳戶Model

│   │   ├─UserPurchase.cs // 購買物品Model

│   │   ├─PurchaseHistory.cs // 購買歷史Model

│   │   ├─UserService // 與使用者帳戶相關之商業邏輯

│   │   └─UserProductService.cs // 客戶端購買商品之商業邏輯

│   ├─Filter

│   │   └─CustomAuthorizeAttribute.cs // 客製Authorize Filter

│   ├─Product

│   │   ├─Product.cs // Admin端商品Model

│   │   └─ProductService.cs // Admin端商品相關之商業邏輯

│   └─CommonTool.cs // 取得連線字串用的工具

│
├─Scripts

│   ├─Client

│   │   ├─Client.js // 客戶端前端處理

│   └─Product

│       └─Product.js // Admin端前端處理

│
└─Views

    ├─Client

    │   ├─LoginPage.cshtml // 登入畫面

    │   ├─ProductList.cshtml // 商品清單(首頁)

    │   ├─Purchase.cshtml // 商品購買畫面

    │   ├─PurchaseHistory.cshtml // 購買歷史畫面

    │   ├─Register.cshtml // 帳號註冊畫面

    │   └─ShoppingCart.cshtml // 購物車畫面

    ├─Login

    │   └─Index.cshtml // 選擇哪端登入的畫面

    └─Product

        ├─Index.cshtml // Admin端首頁

        ├─Create.cshtml // 新增商品畫面
        
        └─Update.cshtml // 更新商品資訊畫面

verysimpleshoppingcart's People

Contributors

mark88915 avatar

Watchers

 avatar

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.