├── gradle.properties ├── src ├── main │ ├── resources │ │ ├── static │ │ │ ├── templates │ │ │ │ ├── footer.html │ │ │ │ ├── status.html │ │ │ │ ├── errors.html │ │ │ │ ├── header.html │ │ │ │ ├── albums.html │ │ │ │ ├── grid.html │ │ │ │ ├── list.html │ │ │ │ └── albumForm.html │ │ │ ├── img │ │ │ │ ├── glyphicons-halflings.png │ │ │ │ └── glyphicons-halflings-white.png │ │ │ ├── js │ │ │ │ ├── info.js │ │ │ │ ├── app.js │ │ │ │ ├── status.js │ │ │ │ ├── errors.js │ │ │ │ └── albums.js │ │ │ ├── css │ │ │ │ ├── app.css │ │ │ │ └── multi-columns-row.css │ │ │ └── index.html │ │ ├── application.yml │ │ └── albums.json │ └── java │ │ └── org │ │ └── cloudfoundry │ │ └── samples │ │ └── music │ │ ├── repositories │ │ ├── jpa │ │ │ └── JpaAlbumRepository.java │ │ ├── mongodb │ │ │ └── MongoAlbumRepository.java │ │ ├── AlbumRepositoryPopulator.java │ │ └── redis │ │ │ └── RedisAlbumRepository.java │ │ ├── domain │ │ ├── RandomIdGenerator.java │ │ ├── ApplicationInfo.java │ │ └── Album.java │ │ ├── Application.java │ │ ├── web │ │ ├── ErrorController.java │ │ ├── InfoController.java │ │ └── AlbumController.java │ │ └── config │ │ ├── data │ │ └── RedisConfig.java │ │ └── SpringApplicationContextInitializer.java └── test │ └── java │ └── org │ └── cloudfoundry │ └── samples │ └── music │ └── ApplicationTests.java ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── manifest.yml ├── gradlew.bat ├── gradlew ├── README.md └── LICENSE /gradle.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/static/templates/footer.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottfrederick/spring-music/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/resources/static/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottfrederick/spring-music/HEAD/src/main/resources/static/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /src/main/resources/static/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottfrederick/spring-music/HEAD/src/main/resources/static/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.ipr 3 | *.ids 4 | *.iws 5 | .idea/ 6 | 7 | .project 8 | .metadata 9 | local.properties 10 | .classpath 11 | .settings/ 12 | .loadpath 13 | 14 | 15 | target/ 16 | 17 | .gradle 18 | build/ 19 | 20 | *.log* 21 | /classes/ 22 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /src/main/resources/static/js/info.js: -------------------------------------------------------------------------------- 1 | angular.module('info', ['ngResource']). 2 | factory('Info', function ($resource) { 3 | return $resource('appinfo'); 4 | }); 5 | 6 | function InfoController($scope, Info) { 7 | $scope.info = Info.get(); 8 | } 9 | -------------------------------------------------------------------------------- /manifest.yml: -------------------------------------------------------------------------------- 1 | --- 2 | applications: 3 | - name: spring-music 4 | memory: 1G 5 | random-route: true 6 | path: build/libs/spring-music-1.0.jar 7 | env: 8 | JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}' 9 | # JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 11.+ } }' 10 | 11 | -------------------------------------------------------------------------------- /src/main/resources/static/templates/status.html: -------------------------------------------------------------------------------- 1 |{{status.message}}
6 || Album Title | 6 |Artist | 7 |Year | 8 |Genre | 9 |10 | |
|---|---|---|---|---|
|
15 | |
17 |
18 | |
20 |
21 | |
23 |
24 | |
26 | 27 | 28 | 29 | 30 | 34 | | 35 |