Coder Social home page Coder Social logo

rest_api's Introduction

Rest_api

By Sangwa Sabine Chelsea

Description

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,

Install

Pre-requisites

  1. 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

Installation guide

{follow the below instructions for set up.}

  1. You will need Internet connection.

  2. You need to get into the Rest_api Repository.

 Link:-> https://github.com/Sangwa-C/Rest_api.git
  1. From there you can access the Rest_api project.

  2. Clone the project.

  3. get into project folder (cd into project).

  4. If you have all the Pre-requisites you can run the application.

 gradle run

Manual Database Creation

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);

BDD

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

Known Bugs

bug This webpage is not suitable for all screen sizes and it might load slowly if your internet is low.

bug Can submit empty or invalid characters in adding department.

bug Can submit empty or invalid characters in an adding a notice.

bug User can submit empty or invalid characters when registering a user.

bug User can not delete entry.

bug User can not update entry.

bug Recording dates aren't recorded.

Technologies Used

  • JAVA
  • Gradle
  • Spark
  • HTML
  • CSS & Bootstrap
  • PostgreSQL
  • Junit
  • Heroku

Support and contact details

If you any issues or have questions, ideas or concerns contact us on [email protected].

License

MIT Copyright (c) 2019 Sangwa Sabine Chelsea. # Wildlife-Tracker

rest_api's People

Contributors

sangwa-c avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.