An open API service indexing awesome lists of open source software.

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.

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.