Design Questions

Create your own Instagram with following features:

  • createProfile
  • upload image
  • Download image(imgId)
  • Follow person

Explain with entity, model, ER, class

Entities: I’m right out the bat thinking about the fact that we need classes such as Users, Images and Followers. The User would have a UserId, Username, Email, PasswordHash, ProfilePicture. Image would have the attributes such as ImageId, ImageURL, Caption, UploaderUserId, etc. Follower would have attributes FollpwerId, FollowingId, etc.

Models: UserProfile: where it can create a profile, imagePost to uploadImage and FollowSystem to follow someone.