https://github.com/eric-souzams/beerstock
Beer Stock is a API for managing beer stocks. However, the main focus is to develop unit tests to cover and validate the application.
https://github.com/eric-souzams/beerstock
hibernate java junit spring spring-boot
Last synced: 11 months ago
JSON representation
Beer Stock is a API for managing beer stocks. However, the main focus is to develop unit tests to cover and validate the application.
- Host: GitHub
- URL: https://github.com/eric-souzams/beerstock
- Owner: eric-souzams
- Created: 2021-06-14T17:42:07.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-14T19:05:06.000Z (about 5 years ago)
- Last Synced: 2025-03-26T14:32:51.263Z (over 1 year ago)
- Topics: hibernate, java, junit, spring, spring-boot
- Language: Java
- Homepage:
- Size: 284 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
About |
Preview |
Technologies |
Building |
Contributing
## About
Beer Stock is a API for managing beer stocks. However, the main focus is to develop unit tests to cover and validate the application.
## Preview
#### Tests Coverage
#### Beer Stock
```
POST: http://localhost:8080/api/v1/beers
```
```
GET: http://localhost:8080/api/v1/beers/{name}
```
```
GET: http://localhost:8080/api/v1/beers
```
```
DELETE: http://localhost:8080/api/v1/beers/{id}
```
```
PATCH: http://localhost:8080/api/v1/beers/{id}/increment
```
```
PATCH: http://localhost:8080/api/v1/beers/{id}/decrement
```
## Back-end Technologies
This project was developed using the following technologies:
- [Spring](https://spring.io/)
- [Java](https://www.oracle.com/br/java/technologies/javase-jdk11-downloads.html)
- [JPA + Hibernate](https://spring.io/projects/spring-data-jpa)
- [JUnit](https://junit.org)
- [Mockito](https://site.mockito.org)
- [Hamcrest](https://hamcrest.org)
- [MapStruct](https://mapstruct.org)
## Building
You'll need [Java 11+](https://www.oracle.com/br/java/technologies/javase-jdk11-downloads.html) and [Maven](https://maven.apache.org/download.cgi) installed on your computer in order to build this app.
```bash
$ git clone https://github.com/eric-souzams/beerstock.git
$ cd /beerstock
$ mvn spring-boot:run
```
## Contributing
This repository is currently under development. If you want to contribute please fork the repository and get your hands dirty, and make the changes as you'd like and submit the Pull request.