|
| 1 | +# SQL Database Integration |
| 2 | +[Compare to master](https://github.com/awslabs/eb-java-scorekeep/compare/sql) |
| 3 | + |
| 4 | +This branch uses Spring Boot Data JPA to store game records in a PostgreSQL database on Amazon RDS. |
| 5 | + |
| 6 | +**Front end** |
| 7 | +- [`demo.html`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/public/demo.html) - Demo page with buttons for generating calls to database |
| 8 | +- [`demo-controller.js`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/public/app/demo-controller.js) - Controller |
| 9 | +- [`game-history-model.js`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/public/app/game-history-model.js) - Model |
| 10 | + |
| 11 | +**API** |
| 12 | +- [`GameHistoryController.java`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/java/scorekeep/GameHistoryController.java) - Controller |
| 13 | +- [`GameHistoryModel.java`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/java/scorekeep/GameHistoryModel.java) - Model |
| 14 | +- [`RdsNotConfiguredException.java`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/java/scorekeep/RdsNotConfiguredException.java) - Exception |
| 15 | + |
| 16 | +**Data Access Object (DAO) Layer** |
| 17 | +- [`GameHistory.java`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/java/scorekeep/dao/gamehistory/GameHistory.java) - Model |
| 18 | +- [`GameHistoryRepository.java`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/java/scorekeep/dao/gamehistory/GameHistoryRepository.java) - CRUD repository |
| 19 | + |
| 20 | +**Configuration** |
| 21 | +- [`Application.java`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/java/scorekeep/Application.java) - Checks for the environment variables that Elastic Beanstalk sets when a database is attached and chooses a profile. |
| 22 | + - `pgsl` profile - [`application-pgsql.properties`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/resources/application-pgsql.properties), [`RdsWebConfig.java`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/java/scorekeep/RdsWebConfig.java) |
| 23 | + - `nodb` profile - [`application-nodb.properties`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/resources/application-nodb.properties), [WebConfig.java](https://github.com/awslabs/eb-java-scorekeep/blob/sql/src/main/java/scorekeep/WebConfig.java) |
| 24 | +- [`build.gradle`](https://github.com/awslabs/eb-java-scorekeep/blob/sql/build.gradle) - Adds PostgreSQL and Spring Boot Data JPA to build dependencies |
| 25 | + |
1 | 26 | # Scorekeep |
2 | 27 | Scorekeep is a RESTful web API implemented in Java that uses Spring to provide an HTTP interface for creating and managing game sessions and users. This project includes the scorekeep API and a frontend web app that consumes it. The frontend and API can run on the same server and domain or separately, with the API running in Elastic Beanstalk and the frontend served statically by a CDN. |
3 | 28 |
|
|
0 commit comments