Skip to content

Commit b98b55f

Browse files
committed
readme
1 parent f47dda9 commit b98b55f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
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+
126
# Scorekeep
227
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.
328

0 commit comments

Comments
 (0)