Skip to content

0x726f6f6b6965/web3-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-commerce

Basic Architecture Design

architecture

Entity Relationship Diagram

entity relationship diagram

Table

Get

# access pattern target action pk sk done
1 get user information table get item USER#public_address #PROFILE#public_address
2 get all products GSI-soft_delete_index scan soft_deleted exist
3 get orders of user table query USER#public_address BeginWith ORDER#
4 get product information table get item PRODUCT#product_id #PROFILE#product_id
5 get order table get item USER#public_address ORDER#order_id

Set

# access pattern target action pk sk done
1 set new user information table put item USER#public_address #PROFILE#public_address
2 set new order table put item USER#public_address ORDER#order_id
3 set product information table put item PRODUCT#product_id #PROFILE#product_id

Update

# access pattern target action pk sk done
1 update user information table update item USER#public_address #PROFILE#public_address
2 update order status table update item USER#public_address ORDER#order_id
3 update product information table update item PRODUCT#product_id #PROFILE#product_id

Endpoints

Auth

# action method header endpoint body return done
1 register POST /auth/register user basic info
2 get token POST /auth/token signature jwt token

User

# action method header endpoint body return done
1 get user info GET basic_jwt /user/info user basic info
2 update user info PATCH basic_jwt /user/info user info & update_mask user basic info

Product

# action method header endpoint body return done
1 get all product GET /product/list products & next_token
2 get detail product info GET /product/product_id product info
3 create product POST admin_jwt /admin/product/create product info product info
4 update product info PATCH admin_jwt /admin/product/product_id product info & update_mask product info

Order

# action method header endpoint body return done
1 create order POST basic_jwt /order/create order info order_id
2 get orders of user GET basic_jwt /order/list orders
3 get order GET basic_jwt /order/orderId order info
4 cancel order GET basic_jwt /order/cancel/orderId

Payment

# action method header endpoint body return done
1 pay order POST basic_jwt /payment/pay pay info payment_tx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages