Name: E-Commerce Website
Year: 2023
Info:
Idea:
Description: Project e-commerce website divided into 2 parts (Admin and Store) with Authentication, Authorization, Easy editing of existing products and adding new ones, viewing open orders in the form of a convenient table and graphs, payment processing through the Stripe system and much more.
Deploy:
Admin: https://app-ecommerce-2023-admin.vercel.app/
Store: https://app-ecommerce-2023-store.vercel.app/
Preview:
Preview:
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
PATCH /api/stores/${storeId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store to be updated. |
Data |
Type |
Description |
name |
string |
Required. Store name. |
DELETE /api/stores/${storeId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store to be deleted. |
GET /api/${storeId}/billboards
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store to be deleted. |
POST /api/${storeId}/billboards
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store to be deleted. |
Data |
Type |
Description |
label |
string |
Required. Billboard label. |
imageUrl |
string |
Required. Billboard image URL. |
GET /api/${storeId}/billboards/${billboardId}
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
billboardId |
string |
Required. Id of the store billboard. |
POST /api/${storeId}/billboards/${billboardId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
billboardId |
string |
Required. Id of the store billboard to be updated. |
Data |
Type |
Description |
label |
string |
Required. Billboard label. |
imageUrl |
string |
Required. Billboard image URL. |
DELETE /api/${storeId}/billboards/${billboardId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
billboardId |
string |
Required. Id of the store billboard to be deleted. |
GET /api/${storeId}/categories
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
POST /api/${storeId}/categories
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
Data |
Type |
Description |
name |
string |
Required. Category name. |
billboardId |
string |
Required. Billboard for this category. |
GET /api/${storeId}/categories/${categoryId}
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
categoryId |
string |
Required. Id of the store category. |
PATCH /api/${storeId}/categories/${categoryId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
categoryId |
string |
Required. Id of the store category to be updated. |
Data |
Type |
Description |
name |
string |
Required. Category name. |
billboardId |
string |
Required. Billboard for this category. |
DELETE /api/${storeId}/categories/${categoryId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
categoryId |
string |
Required. Id of the store category to be deleted. |
GET /api/${storeId}/colors
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
POST /api/${storeId}/colors
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
Data |
Type |
Description |
name |
string |
Required. Color name display. |
value |
string |
Required. Color value. |
GET /api/${storeId}/colors/${colorId}
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
colorId |
string |
Required. Id of the store color. |
PATCH /api/${storeId}/colors/${colorId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
colorId |
string |
Required. Id of the store color to be updated. |
Data |
Type |
Description |
name |
string |
Required. Color name display. |
value |
string |
Required. Color value. |
DELETE /api/${storeId}/colors/${colorId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
colorId |
string |
Required. Id of the store color to be deleted. |
GET /api/${storeId}/sizes
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
POST /api/${storeId}/sizes
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
Data |
Type |
Description |
name |
string |
Required. Size name display. |
value |
string |
Required. Size value. |
GET /api/${storeId}/sizes/${sizeId}
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
sizeId |
string |
Required. Id of the store size. |
PATCH /api/${storeId}/sizes/${sizeId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
sizeId |
string |
Required. Id of the store size to be updated. |
Data |
Type |
Description |
name |
string |
Required. Size name display. |
value |
string |
Required. Size value. |
DELETE /api/${storeId}/sizes/${sizeId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
sizeId |
string |
Required. Id of the store size to be deleted. |
GET /api/${storeId}/products
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
categoryId |
string |
Filter by store category Id. |
colorId |
string |
Filter by store color Id. |
sizeId |
string |
Filter by store size Id. |
isFeatured |
boolean |
Filter by store isFeatured value. |
POST /api/${storeId}/products
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
Data |
Type |
Description |
name |
string |
Required. Product name. |
price |
string |
Required. Product price. |
categoryId |
string |
Required. Product category id. |
colorId |
string |
Required. Product color id. |
sizeId |
string |
Required. Product size id. |
images |
[{url:string}] |
Required. Array with image Url(s). |
isFeatured |
boolean |
Required. Boolean value whether to display the product on the main page. |
isArchived |
boolean |
Required. Boolean importance of whether to archive this product. |
GET /api/${storeId}/products/${productId}
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
productId |
string |
Required. Id of the store product. |
PATCH /api/${storeId}/products/${productId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
productId |
string |
Required. Id of the store product to be updated. |
Data |
Type |
Description |
name |
string |
Required. Product name. |
price |
string |
Required. Product price. |
categoryId |
string |
Required. Product category id. |
colorId |
string |
Required. Product color id. |
sizeId |
string |
Required. Product size id. |
images |
[{url:string}] |
Required. Array with image Url(s). |
isFeatured |
boolean |
Required. Boolean value whether to display the product on the main page. |
isArchived |
boolean |
Required. Boolean importance of whether to archive this product. |
DELETE /api/${storeId}/products/${productId}
Parameter |
Type |
Description |
userId |
auth |
Required. User auth from Clerk. |
storeId |
string |
Required. Id of the store. |
productId |
string |
Required. Id of the store product to be deleted. |
Get header options
OPTIONS /api/${storeId}/checkout
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
POST /api/${storeId}/checkout
Parameter |
Type |
Description |
storeId |
string |
Required. Id of the store. |
invoice |
Stripe object |
Required. Stripe invoce object. |
.d8b. d8888b. d8888b. d88888b .o88b. .d88b. .88b d88. .88b d88. d88888b d8888b. .o88b. d88888b .d888b. .d88b. .d888b. d8888b.
d8' `8b 88 `8D 88 `8D 88' d8P Y8 .8P Y8. 88'YbdP`88 88'YbdP`88 88' 88 `8D d8P Y8 88' VP `8D .8P 88. VP `8D VP `8D
88ooo88 88oodD' 88oodD' 88ooooo 8P 88 88 88 88 88 88 88 88 88ooooo 88oobY' 8P 88ooooo odD' 88 d'88 odD' oooY'
88~~~88 88~~~ 88~~~ C8888D 88~~~~~ 8b 88 88 88 88 88 88 88 88 88~~~~~ 88`8b 8b 88~~~~~ C8888D .88' 88 d' 88 .88' ~~~b.
88 88 88 88 88. Y8b d8 `8b d8' 88 88 88 88 88 88 88. 88 `88. Y8b d8 88. j88. `88 d8' j88. db 8D
YP YP 88 88 Y88888P `Y88P' `Y88P' YP YP YP YP YP YP Y88888P 88 YD `Y88P' Y88888P 888888D `Y88P' 888888D Y8888P'
MIT