An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Zoo04Lab

> Welcome to our Zoo!

[![Known Vulnerabilities](https://snyk.io/test/github/denisecase/Zoo04Lab/badge.svg)](https://snyk.io/test/github/denisecase/Zoo04Lab)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/62545caa0c744a12a7f3995641b73766)](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