Social Network API
Social Network API Built Using Node.js, Express and MongoDB(Mongoose).
API: https://social-network.onrender.com
Live: https://mohhamedhassan.github.io/fakebook/auth/signin
npm install
npm start (port 3000)
npm run dev (nodemon) (port 3000)
Register for a new account (firstName, lastName, email, password, birthDate, gender)
Login (email, password)
Set/update profile photo (profilePhoto)
Set/update cover image (coverImage)
Add personal information: all fields are optional (location, socialCondition, work, study, bio, religion)
Add a new post : required ( content ), optional ( image, location )
Follow or unfollow a user
Set or unset dark mode
Add comment on a post ( comment )
Update post content (content, location)
Update post image (image)
Update profile info -all are optional- (firstName, lastName, email, password, birthDate, gender, location, socialCondition, work, study, bio, religion)
Change password (password, newPassword)
update a comment of yours (id, comment)
Get your profile
Get your posts
Get all posts
Get your following posts
Get a single post
Get a user’s profile
Get my followers
Get my followings
Get a user followers
Get a user followings
Get all of your photos
Get all of user’s photos
Get suggested users
Search in all users
Get your notifications
Delete main profile photo
Delete previous profile photo
Delete cover image
Delete a post
Delete one or more personal information ( birthDate, gender, location, socialCondition, work, study, bio, religion )
Delete a comment of yours (id)