Skip to content

zkrhm/imd-socialnetwork

Repository files navigation

Build Status

Social Networking.

Components

  • Gorilla Mux (Hail Harambe...!!!)
  • Plain old handler
  • [Cayley Graph] (https://cayley.io/) (currently running on memory graph - so there won't be persisted data out of testing data)
    • socialnetwork better to be implemented using graph structure.

How to run.

execute following command on terminal

docker-compose up

How to access :

open this file on Postman App

Using go

You need to get golang dep installed on Terminal execute :

go get -u github.com/zkrhm/imd-socialnetwork

then do :

cd $GOPATH/src/github.com/zkrhm/imd-socialnetwork
go dep

Rules

this program following these rules :

  • Registered user can connect to other registered user
    • connected user become update receiver until/unless he do block person who publishing update
  • User cannot connect to other user who blocks him
  • User can subscribe to other user's update
    • this subscribing user will receive update from people who he/she subscribe to even if not connected as friend
  • User can block other user
  • When a user doing update, following users will be the recipient of the update
    1. this user friends
    2. users who subscribe
    3. registered user who mentioned at text update and following user won't become the recipient
    4. friend who block him
    5. registered user who are not friend
    6. unregistered email address mentioned on his / her update.

List of Registered user.

You can check at app/app.go

Friend Relationship

User Relationship

Tested on Golang ver.1.10.3, Docker image on ver.1.10.4

About

IMD social network (Friend management)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published