GithubHelp home page GithubHelp logo

tlcn-shopphukienmaytinh's Introduction

# TLCN-ShopPhuKienMayTinh

project backend cho shop ban phu kien may tinh

HDSD Git: (vì hay quên)

STT Action How to
1 …or create a new repository on the command line

echo "# TLCN-ShopPhuKienMayTinh" >> README.md

git init

git add README.md

git commit -m "first commit"

git branch -M main

git remote add origin https://github.com/phuochung6d/TLCN-ShopPhuKienMayTinh.git

git push -u origin main

1 …or push an existing repository from the command line

git remote add origin https://github.com/phuochung6d/TLCN-ShopPhuKienMayTinh.git

git branch -M main

git push -u origin main

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

API (/api/v1):

Mô tả Hành động
/users /signup Đăng ký tài khoản Nhấn Đăng ký
/login Đăng nhập Nhấn Đăng nhập
/forgotPassword Quên mật khẩu Nhấn Quên MK
/resetPassword/{TOKEN} Reset mật khẩu (khi đã Quên MK)
/updateMyPassword Cập nhật mật khẩu (khi đã login) Nhấn Sửa MK
/updateMe Cập nhật thông tin của tôi Nhấn Edit
/deleteMe Xoá tài khoản của tôi Nhấn Xoá tài khoản
/ Xem tất cả users trong hệ thống
/{USER_ID} GET: thông tin 1 user trong hệ thống
/{USER_ID} UPDATE: thông tin 1 user trong hệ thống
/{USER_ID} DELETE: 1 user trong hệ thống
/products / GET: tất cả sản phẩm Ở trang chủ (chẳng hạn)
/{PRODUCT_ID} GET: thông tin 1 sản phẩm Nhấn vào sản phẩm nào đó
/ POST: thông tin 1 sản phẩm
/{PRODUCT_ID} UPDATE: thông tin 1 sản phẩm
/{PRODUCT_ID} DELETE: 1 sản phẩm
/reviews / GET: tất cả nhận xét Nhấn vào sản phẩm nào đó
/{REVIEW_ID} GET: thông tin 1 nhận xét
/ POST: 1 nhận xét
/{REVIEW_ID} UPDATE: thông tin 1 nhận xét
/{REVIEW_ID} DELETE: 1 nhận xét
/products/
{PRODUCT_ID}/reviews
GET: tất cả nhận xét của sản phẩm nào đó Nhấn vào sản phẩm nào đó
sẽ hiện ra nhận xét
POST: nhận xét cho sản phẩm nào đó Khách hàng muốn nhận xét
/cart / POST: thêm SP vào giỏ hàng Khách hàng nhấn thêm
sản phẩm vào giỏ hoặc
nhấn tăng số lượng SP nào đó
/ GET: SP trong giỏ hàng Khách hàng nhấn nút
giỏ hàng
/decreaseFromCart POST: trừ số lượng SP
nào đó trong giỏ hàng
KH giảm số lượng SP nào đó
trong giỏ hàng, khi số lượng đang
bằng 1 thì bấm giảm sẽ xoá SP
/deleteFromCart POST: SP nào đó
trong giỏ hàng
KH xoá SP nào đó trong
giỏ hàng

Updates:

1-api-product

- Chỉ là test routes cơ bản

2-api-authen-author

- Thêm chức năng authentication

- Thêm chức năng authorization

- Fix lỗi commit trước

3-api-product-review

- Thêm các chức năng advanced của Product

- Thêm model và chức năng của Review

- Do cleaning code (cho /controllers/...)

4-api-cart

- Thêm chức năng thêm, bớt, giảm, xoá trong giỏ hàng

- Lưu ý: thông tin của giỏ hàng nằm trong user hiện tại (getOneUser (role: admin) sẽ thấy)

tlcn-shopphukienmaytinh's People

Contributors

hwng6d 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.