A simple movie catalogue service used for developer training
- Test: http://movie-service-test.eu-west-2.elasticbeanstalk.com
- Prod: http://movie-service.eu-west-2.elasticbeanstalk.com
Tests
mvn clean test
Coverage
mvn clean cobertura:cobertura
Publish artifact
mvn -s .travis.settings.xml clean deploy
Create DB
mysql -u root < scripts/create_db.sql
Remove DB
mysql -u root < scripts/delete_db.sql
Running Spring Boot
java -jar target/movie-service.jar --server.port=5000
Build and run
mvn clean package && java -jar target/movie-service.jar --server.port=5000
Sonar Cloud
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=boycook_github \
-Dsonar.login=$SONAR_LOGIN
Sync repo with code.red
git remote add upstream ssh://git@git.code.red:7999/cr/poc-pipeline-movie-service.git
git pull upstream master
- https://spring.io/guides/gs/securing-web/
- https://spring.io/guides/gs/accessing-data-rest/
- https://spring.io/guides/gs/accessing-data-mysql/
- https://spring.io/guides/gs/handling-form-submission/
- https://spring.io/guides/tutorials/react-and-spring-data-rest/
- https://www.codesandnotes.be/2015/02/05/spring-securitys-csrf-protection-for-rest-services-the-client-side-and-the-server-side/
- https://aws.amazon.com/blogs/devops/deploying-a-spring-boot-application-on-aws-using-aws-elastic-beanstalk/
- https://docs.travis-ci.com/user/deployment/elasticbeanstalk/#Environment-variables
- https://console.aws.amazon.com/iam/home?#/security_credential
- https://github.com/metaeducation/ren-c/wiki/Create-Travis-s3-Deployment-Credentials
- https://renzo.lucioni.xyz/s3-deployment-with-travis/
- https://docs.travis-ci.com/user/build-stages/