# GROUP A PROJECT DEPLOYMENT MANUAL
## Pre-run installation
### 0. App version specific:
Java 17, Spring 2.7.5, Spring Tool Suite 4.15.0, Oracle XE 11g, VSCode 1.54.3
### 1. Download and extract file crt.rar
Contains 2 folder "gallery" for the FE and "crt" for the BE
### 2. Install Lombok for STS

***Steps are as followed images:***
1
2
3
4
***Install/Update***
## Run the project
### 1. Swagger
1. A place to check what's indeed of a request for each controller of the project.
2. Link to project's swagger:
http://localhost:6969/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config
3. Sample UI for a request:

### 2. Run the project in STS, then head to cmd and type in below commands:
Remember to change oracle setting in application.properties
```
desc stock
desc category
desc product
desc orderdetail
desc customer
desc cusorder
```
Result:

### 3. Run the branding Angular in vscode
Open VSCode, get to the folder of the project and type in console:
```
ng serve --open
```

If the home paged popped up then you are ready to go.

## Testing with postman
So you can try some request to see how the project works, noted that environment variable "branding" is equal to http://localhost:6969/
### A few examples
Login request return boolean:

Get customers list:

Update customer:

Get customer's cart list:

And so on ...