https://github.com/denisecase/zoo04lab
Zoo Simulation
https://github.com/denisecase/zoo04lab
bootstrap collaboration heroku java java-17 maven oop thymeleaf-java
Last synced: 7 months ago
JSON representation
Zoo Simulation
- Host: GitHub
- URL: https://github.com/denisecase/zoo04lab
- Owner: denisecase
- Created: 2021-09-29T03:55:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T08:33:07.000Z (over 1 year ago)
- Last Synced: 2025-03-25T10:17:15.936Z (8 months ago)
- Topics: bootstrap, collaboration, heroku, java, java-17, maven, oop, thymeleaf-java
- Language: Java
- Homepage: https://zooweb.herokuapp.com/
- Size: 2.46 MB
- Stars: 1
- Watchers: 2
- Forks: 56
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: licenseheader.txt
Awesome Lists containing this project
README
# Zoo04Lab
> Welcome to our Zoo!
[](https://snyk.io/test/github/denisecase/Zoo04Lab)
[](https://www.codacy.com/gh/denisecase/Zoo04Lab/dashboard?utm_source=github.com&utm_medium=referral&utm_content=denisecase/Zoo04Lab&utm_campaign=Badge_Grade)
## Check Code with Static Analysis Tools
- Snyk monitors our code for vulnerabilities in the packages we include.
- Codacy checks our code for common 'code smells' and recommends improvements.
- Click the badges to learn more.
## API
- Explore API at
- Generate API with `mvn javadoc:javadoc`
## Test Coverage
- Explore test coverage at https://denisecase.github.io/Zoo04Lab-Coverage/
Test coverage report is hosted from a separate repo.
- Create a new test reporting repo in the cloud. Settings / GitHub Pages / set to publish.
- Clone this reporting repo down to your machine.
- Generate the report from this project repo on your machine using the commands below.
- Manually copy all files in the project target/site/jacoco folder into the root directory of this new reporting repo.
- Git add & commit, then git push the files up to the cloud reporting repo.
Regenerate results periodically.
Open Powershell Here as Admininstrator in your root project folder (the one with pom.xml):
- Prepare test results with `mvn clean jacoco:prepare-agent install`
- Prepare coverage site with `mvn jacoco:report`
- This builds target/site/jacoco which is then copied to the hosted repo above.
-----
## Run in Netbeans
- Open the project
- Make sure you're compiling with Java 17 or better
To run the console app, in Netbeans project view:
- Right-click on App, click Run File
To run the web app, in Netbeans project view:
- Right-click on AppWeb, click Run File
- open browser to
When done, remember to click the red icon to stop the currently running build.
Use CTRL ALT DEL / Task Manager to view (& kill) any extra Netbeans processes.
## Compile & Run with Java 17
Netbeans
- Open project in Netbeans.
- Right-click project / Properties / Build / Compile / JDK Version / select JDK 17.
- Right-click project / Clean and build
- Right-click project / Run
Powershell
```Powershell
java -version
mvn clean package spring-boot:repackage
java -jar target/Zoo04Lab-1.0-SNAPSHOT
```
-----
## Prepare the App for Heroku
- Add Procfile
- Add system.properties
- Configure pom.xml
## Deploy with Heroku
- Heroku / New / Create new app - give it a name.
- Click on app / Settings / Buildpacks / Add Buildpack / Java
- Click on app / Settings / Deploy / GitHub / select repo / enable automatic deploys from main
- Click on app / Settings / Deploy / Deploy branch (main) to deploy
- Click on app / Settings / Overview / click on build logs to see progress, view errors
-----
## References
1. [Heroku - Customizing the JDK](https://devcenter.heroku.com/articles/customizing-the-jdk)
-----
## Related GitHub Projects
- [01-Zoo Cost Calculator](https://github.com/bharathnw/ZooCostCalculator) - App
- [02-Zoo Restaurant](https://github.com/gorantla07/ZooRestaurant) - App
- [03-Zoo Visitors and Employees](https://github.com/S545232/ZooGroup03) - App
- [04-Zoo Vehicles](https://github.com/nagururehaman/ZooAppVehicle) - [App](https://zooappvehicle.herokuapp.com/) ⭐
- [05-Zoo Games](https://github.com/satheesheppalapelli/ZooGameApp) - App
- [06-Zoo Adventure and Water Rides](https://github.com/Bchamp21/ZooJestApp) - App
- [07-Zoo Humans](https://github.com/Vamsi735/squad6) - App
- [09-Zoo Rental Vehicles](https://github.com/vinay564/ZooRentalVehiclesApp) - App
- [10-Zoo Persons](https://github.com/Dierale/ZooGroup10) - [App](https://group10zoo.herokuapp.com/) ⭐ 📷
- [11-Zoo Rides](https://github.com/Hkdp-Omtri/ZooApp11) - App