This is an app that the users to display notices, identify department and add user in the department all those are added into the database to the database,
-
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 Rest_api Repository.
Link:-> https://github.com/Sangwa-C/Rest_api.git
-
From there you can access the Rest_api project.
-
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 rest_api; \c rest_api;
-
CREATE TABLE userer(id SERIAL PRIMARY KEY,name VARCHAR,title VARCHAR,duty VARCHAR,dname VARCHAR);
-
CREATE TABLE news(id SERIAL PRIMARY KEY, header VARCHAR, content VARCHAR,author VARCHAR);
-
CREATE TABLE department(id SERIAL PRIMARY KEY,dname VARCHAR,ddescription VARCHAR,nemployees VARCHAR);
The program should allow the user to add Department
Input Example: "Department's name: Human Resources"
"Department's Cause: Recruitment"
"Number of Employees: 45"
The program should return when the user adds the department the database
Output Example: "Department's name: Human Resources"
"Department's Cause: Recruitment"
"Number of Employees: 45"
The program should allow the user to publish news
Input Example: News Header: Meeting
Information: board meeting in Sangwa Hall at 9:00h
Said by: Chelsea
The program should allow the user to publish news
Output Example: News Header: Meeting
Information: board meeting in Sangwa Hall at 9:00h
Said by: Chelsea
The program should allow the user to register
Input Example:User Name: Sangwa
User Title: manager
User's Duty: managing
User's Department: Operations management
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 adding department.
Can submit empty or invalid characters in an adding a notice.
User can submit empty or invalid characters when registering a user.
Recording dates aren't recorded.
- 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