Skip to content

andreitam/lego-store-node-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lego-store-node-angular

E-commerce site with Angular, Node and MySql.

setup

  • DB: create from schemas in mysql folder.
  • Server: install dependencies in server folder with npm install. Start server with npm run local.
  • Client: Stat server in client folder with ng serve -o.

disclaimer

LEGO, the LEGO logo and all the themes and product pictures and details are trademarks of the LEGO Group.

functionalities

  • products view with sorting and filtering main2
  • registration and authentication forms login-form
  • product detail view, add to cart with quantity, update or delete product only for Admin product
  • add product form only for Admin add-form
  • shopping cart view with delete button for each item and order calculation view with checkout button shopping-cart
  • order confirmation created order

rest api

  • 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