https://github.com/diana-kieru/buzz-feed
This is a REST API used for querying and retrieving scoped news and information. There are news/articles/posts that are available to all employees without navigating into any department, and others that are housed/classified within departments.
https://github.com/diana-kieru/buzz-feed
gradle handlebars java json postgresql postman sql
Last synced: 5 months ago
JSON representation
This is a REST API used for querying and retrieving scoped news and information. There are news/articles/posts that are available to all employees without navigating into any department, and others that are housed/classified within departments.
- Host: GitHub
- URL: https://github.com/diana-kieru/buzz-feed
- Owner: Diana-Kieru
- License: mit
- Created: 2022-05-13T17:02:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T08:54:42.000Z (almost 4 years ago)
- Last Synced: 2025-10-11T19:31:51.639Z (5 months ago)
- Topics: gradle, handlebars, java, json, postgresql, postman, sql
- Language: Java
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buzzfeed
This is a REST API used for querying and retrieving scoped news and information. There are news/articles/posts that are available to all employees without navigating into any department, and others that are housed/classified within departments.
#### By Diana Kieru
## Setup/Installation Requirements
* You need to have Java, IntelliJ, gradle, Junit, Jdk and sdk installed.
* Clone the repository
* Build (gradle build)
* Run the App (maven))
* Navigate to localhost:4567 on your browser
* In PSQL:
```
CREATE DATABASE buzzfeed;
CREATE TABLE news (id serial PRIMARY KEY, post varchar);
CREATE TABLE department (id serial PRIMARY KEY, name varchar, numberofemployees int, description varchar);
CREATE TABLE users (id serial PRIMARY KEY, position varchar, name varchar, departmentid int, role varchar);
```
```
end points
On postman localhost:4567
post (/department/new)
post("/departments/:departmentId/news/:newsId")
get("/departments/:id/news")
get("/news/:id/departments")
post("/departments/:departmentId/users/new")
post("/news/new")
get("/departments")
get("/departments/:id")
get("/departments/:id/users")
get("/news")
get("/users")
post("/department/new")
```
## Known Bugs
There are no known bugs. Incase you experience any errors using this website kindly contact me at dianakieru1@gmail.com
## Technologies Used
* Java
* Spark
## Support and contact details
email: dianakieru1@gmail.com
### License
[MIT License](./LICENSE)
Copyright (c) [2022] [Diana Kieru]