Skip to content

A rest REST API for querying and retrieving scoped news and information that are available to all employees without navigating into any department, and others that are housed/classified within departments.

License

Notifications You must be signed in to change notification settings

han254/News-Portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News-Portal

By Peter Njenga

Description

A rest API for querying and retrieving scoped news and information that are available to all employees without navigating into any department, and others that are housed/classified within departments.

Setup/Installation Requirements

  • Open Terminal {Ctrl+Alt+T}
  • clone https://github.com/han254/News-Portal.git.
  • Enter into the folder (cd News-Portal).
  • open your IDE (e.g IntelliJ IDEA)

SQL Installation/ Setup.

1.Launch postgres

2.Type in psql

Run these commands

CREATE DATABASE news_portal;

CREATE TABLE IF NOT EXISTS department( id int PRIMARY KEY auto_increment, departmentname VARCHAR, description VARCHAR,numberOfEmployees int);

CREATE TABLE IF NOT EXISTS users(id int PRIMARY KEY auto_increment,name VARCHAR,position VARCHAR,role VARCHAR,departmentId VARCHAR,email VARCHAR);

CREATE TABLE IF NOT EXISTS news (id int PRIMARY KEY auto_increment,title VARCHAR,content VARCHAR,departmentname VARCHAR,);

Author's Information

Technologies Used

  • Java
  • Spark
  • Postman
  • Psql
  • Intellij

Support and contact details

You can contact me through my email[peternjenga1706@gmail.com]

License

Copyright (c) 2022 click here to view license

About

A rest REST API for querying and retrieving scoped news and information that are available to all employees without navigating into any department, and others that are housed/classified within departments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages