https://github.com/constantin-p/datj-courses-app
Spring MVC Courses App
https://github.com/constantin-p/datj-courses-app
java-8 maven mysql spring-boot
Last synced: 3 months ago
JSON representation
Spring MVC Courses App
- Host: GitHub
- URL: https://github.com/constantin-p/datj-courses-app
- Owner: constantin-p
- License: mit
- Created: 2017-11-26T21:05:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T14:39:04.000Z (over 8 years ago)
- Last Synced: 2025-03-28T16:44:23.133Z (over 1 year ago)
- Topics: java-8, maven, mysql, spring-boot
- Language: HTML
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Courses App
### Running locally
1. Clone the project: `git clone https://github.com/constantin-p/dat16j-courses-app.git`
2. Change the current working directory: `cd dat16j-courses-app`
3. Generate the config file: `cp _templates/application-template.properties src/main/resources/application-production.properties` and replace the placeholders
4. Set script permissions: `chmod +x run.sh` (NOTE: Only required if `run.sh` is not already executable)
5. Run the application : `./run.sh`
### Running on AWS
From the AWS Management Console:
1. Open the Elastic Beanstalk console (top nav: Services > search for: Elastic Beanstalk).
2. Choose Create New Application and use the following options:
Predefined configuration: Java
Source: Upload your own (Build the app locally and create a .zip from target/dat16j-courses-app-*.jar)
3. For Additional Resources select:
- [x] Create a RDS DB instance
- [x] Create this enviroment inside a VPC
4. For RDS Configuration specify a username and password for database access.
5. For VPC Configuration:
Select the default VPC.
Select at least two Availability Zones for each service.
6. For Permissions use the generated profiles.
#### After the launch process, configure Spring Boot:
Open the configuration page, and under Software Configuration, click the settings icon.
Add the following environment variables:
| Property name | Property value | *note |
| --------------------------- | -------------- | ------------ |
| SERVER_PORT | 5000 | |
| SPRING_DATASOURCE_URL | jdbc:mysql://`DB_ENDPOINT`/`DB_NAME` | Endpoint from the `Environment Configuration` page, under the Data Tier section. |
| SPRING_DATASOURCE_USERNAME | DB_USER | From step 4. |
| SPRING_DATASOURCE_PASSWORD | DB_PASS | From step 4. |
## License
This project is MIT licensed.
Please see the [LICENSE](LICENSE) file for more information.