34 lines
786 B
Markdown
34 lines
786 B
Markdown
Prices web service (web-price)
|
|
===================================
|
|
|
|
Web service for obtaining the price of a product given a date, the product id and the brand id.
|
|
|
|
## Requirements
|
|
|
|
- Java 21
|
|
- Maven
|
|
|
|
## Development
|
|
|
|
1. Local installation of the project
|
|
```
|
|
mvn clean install
|
|
```
|
|
2. Run the app from the project root with:
|
|
```
|
|
mvn clean spring-boot:run -pl boot -Dspring-boot.run.profiles=local
|
|
```
|
|
or navigating to the `boot` directory of the project:
|
|
```
|
|
mvn clean spring-boot:run -Dspring-boot.run.profiles=local
|
|
```
|
|
3. Service should be ready to receive requests at http://localhost:8080/price with OpenAPI docs available at http://localhost:8080/swagger-ui/index.html
|
|
|
|
## Running Tests
|
|
|
|
To run all tests in the project:
|
|
|
|
```bash
|
|
mvn test
|
|
```
|