E-commerce site with Angular, Node and MySql.
- DB: create from schemas in
mysql
folder. - Server: install dependencies in
server
folder withnpm install
. Start server withnpm run local
. - Client: Stat server in
client
folder withng serve -o
.
LEGO, the LEGO logo and all the themes and product pictures and details are trademarks of the LEGO Group.
- products view with sorting and filtering
- registration and authentication forms
- product detail view, add to cart with quantity, update or delete product only for Admin
- add product form only for Admin
- shopping cart view with delete button for each item and order calculation view with checkout button
- order confirmation created
-
GET /themes
-> get all themes -
GET /themes/{id}
-> get theme by id -
GET /products
-> get all products -
GET /products/{id}
-> get product by id -
POST /products
-> insert new product ONLY Admin -
DELETE /products/:id
-> delete product ONLY Admin -
PUT /products/:id
-> update product ONLY Admin -
//
products are sorted and filtered in the client side -
POST /customers/auth/signup
-> signup new customer -
POST /customers/auth/signin
-> signin customer -
GET /customers
-> get all customers ONLY Admin -
GET /customers/{id}
-> get customer by id ONLY Admin -
//
shopping cart and order are created and stored in the client browser local storage -
POST /orders
-> insert new order and order-product items from shopping cart