Coder Social home page Coder Social logo

mabunde / rest_api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 29 KB

NewsPortal is an Organisational news dissemination application. Users can post news to the general staff or to staff in a specific department.

License: MIT License

Java 100.00%

rest_api's Introduction

New Portal

Author

By Sitati Solomon

Description

NewsPortal is an Organisational news dissemination application. Users can post news to the general staff or to staff in a specific department.

Setup/Installation Requirements

DATABASE SETUP

  • CREATE DATABASE new_portal;
  • CREATE TABLE users(id serial PRIMARY KEY,name VARCHAR,position VARCHAR,department VARCHAR);
  • CREATE TABLE departments(id serial PRIMARY KEY,name VARCHAR,description VARCHAR,employeesCount INT);
  • CREATE TABLE news(id serial PRIMARY KEY,description VARCHAR,type VARCHAR);
  • CREATE TABLE department_users(id serial PRIMARY KEY,dept_id INT,user_id INT);
  • CREATE TABLE department_news(id serial PRIMARY KEY,dept_id INT,user_id INT,news_id INT);

TEST DATABASE SETUP

  • CREATE DATABASE news_portal_test WITH TEMPLATE news_portal;

API routes to use

  • GET "/departments"
  • GET "/departments/:departmentId"
  • GET "/departments/:departmentId/users"
  • GET "/departments/:departmentId/users/:userId/details"
  • POST "/departments/new"
  • POST "/departments/:departmentId/employees/new"

Technologies Used

  • Java
  • Spark
  • Handlebars
  • PostgreSQL
  • Sql2o

Support and contact details

For support contact [email protected]

License

MIT License

Copyright (c) 2021 Sitati Solomon

rest_api's People

Contributors

mabunde avatar

Watchers

 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.