Skip to content

JatinDholakia/News-Feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Feed

A news feed for your social networking application

  • Users can create Posts which are shared with followers
  • Posts can contain text and media
  • Users can also like and comment on a post
  • News Feed of followers are created when user creates a post
  • Ranking of posts in feed is based on parameters such as : Likes count, Comments count, time of post and distance of post from user.

API Docs - http://jatin.work/#/news-feed/swagger-ui

Postman Collection - https://www.postman.com/warped-crater-862837/workspace/news-feed/collection/13803448-95027502-7e8c-45b1-8c7a-3faf165d7815

High Level Diagram

High Level Diagram

Ranking Algorithm

  • Inspired by Reddit's hot algorithm
  • As time goes by, newer posts will have a higher score.
  • Number of likes and comments have a logarithmic effect on score
  • Here, y is always positive

Reddit Hot Algorithm

Database Schema

Database Schema

Environment Variables

  • MYSQL_PASSWORD
  • NEO4J_PASSWORD
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_DEFAULT_REGION

About

A news feed for your social networking application

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages