- Java 8
- Spring boot 2
- Spring Data Rest
- Spring Security com JWT(Java Web Token)
- Docker
$ mvn clean test
Encontra-se em "scripts/"
$ cd api-rest/ $ docker rm -f api-database; docker run --name api-database -p 3306:3306 -v ${PWD}/scripts/schema.sql:/docker-entrypoint-initdb.d/schema.sql -e MYSQL_ROOT_PASSWORD=root123 -e MYSQL_DATABASE=api-rest mysql:5.7
$ mvn clean install $ cd target/ $ java -jar *.jar
$ mvn clean install $ cd target/ $ java -jar -Dspring.profiles.active=production *.jar
O arquivo encontra-se em "postman/rest-api.postam_collection.json"
#OBS: Os Testes usam o banco h2 mockado.