Final project for John bryce in angular, using MongoDB and NodeJs. Virtual shopping website with list of products and shopping cart, verification of login and register for users. Some functionalities are not fully implemented.
- clone this repository
- Development
- Run : Simply run command: docker-compose up
- Navigate to http://localhost:4200
Server End Points:
GET
/api/users/getAllUsers
- retrieve all registered usersPOST
/api/users/verify
- verify user's token and allowed access to certain componentsPOST
/api/users/register
- registers a new user in the databasePOST
/api/users/login
- verifies user's credentials and allows accessGET
/api/users/products
- retrieves all products in the databasePOST
/api/users/addProduct
- adds a new product to the databasePOST
/api/users/editProduct
- edit an existing product with new values
-Product model
id | productName | category | price | picture |
---|---|---|---|---|
Objectid() | String | String | Int | String |
-User model
id | password | city | street | name | lastName | role | shipments | |
---|---|---|---|---|---|---|---|---|
String | String | String | String | String | String | String | String | Array |