This is an app that allows the user to make list of animals and add them to the database, moreover to track endangered animals sighted in the wild.
Project which I am provided with the code containing the basic classes, Spark setup, HandlebarsTemplateEngine, hbs template structure, routing in App.java, tests, and database setup instructions.
The Forest Service is considering a proposal from a timber company to clearcut a nearby forest of Douglas Fir. Before this proposal may be approved, they must complete an environmental impact study. This application was developed to allow Rangers to track wildlife sightings in the area.
-
Ensure you have Java installed (A simple way to install Java is using sdkman.)
sdk install java
2.Gradle Gradle is used as the build tool and can be installed with sdkman:
sdk install gradle
3.Postgres. (Enter y when prompted โDo you want to continue? [Y/n]โ and wait for the installation to complete. 0r try this link)
sudo apt-get install postgresql postgresql-contrib libpq-dev
{follow the below instructions for set up.}
-
You will need Internet connection.
-
You need to get into the Wildlife-Tracker Repository.
Link:-> https://github.com/Sangwa-C/Wildlife-Tracker.git
-
From there you can access the Wildlife-Tracker.
-
Clone the project.
-
get into project folder (cd into project).
-
If you have all the Pre-requisites you can run the application.
gradle run
To create the necessary databases, launch postgres, then psql, and run the following commands:
- CREATE DATABASE wildlife_tracker;
- \c wildlife_tracker;
- CREATE TABLE animals (id serial PRIMARY KEY, name varchar);
- CREATE TABLE sight CREATE TABLE sightings (id SERIAL PRIMARY KEY,name varchar,location varchar,rangeName varchar,health varchar, age varchar);
- CREATE DATABASE wildlife_tracker_test WITH TEMPLATE wildlife_tracker;
The program should allow the user to add an Animal.
Input Example: "Animals's Name: Zebra"
The program should return when the user add an animals to the database
Output Example: "Animals's Name: Zebra"
The program should allow the user to report an endangered animal
Input Example: "Animals's Name: Zebra"
"Animal's Health: healthy"
"Animals's Age: New born"
"Animal's location: zone A"
"Reporter's Name: Chelsea"
This webpage is not suitable for all screen sizes and it might load slowly if your internet is low.
Can submit empty or invalid characters in a non-endangered animal sighting report.
Can submit empty or invalid characters in an endangered animal sighting report.
User can submit empty or invalid characters when adding an animal to the system.
Recording date of sighting not displayed in detail
- JAVA
- Gradle
- Spark
- HTML
- CSS & Bootstrap
- PostgreSQL
- Junit
- Heroku
If you any issues or have questions, ideas or concerns contact us on [email protected].
MIT Copyright (c) 2019 Sangwa Sabine Chelsea. # Wildlife-Tracker