Skip to content

BoyCook/MovieService

Repository files navigation

Build Status Coverage Status Codacy Badge Dependency Status

Description

A simple movie catalogue service used for developer training

Commands

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

References

Spring
AWS
Testing