Skip to content

aman-rohilla/Social-Media-API

Repository files navigation

Social Media API

JavaScript, Node.js, Express.js, MongoDB, Mongoose, REST API, JWT, User Authentication, Docker, Mocha and Chai

Overview

Register/login on the app
Get user profile
Follow another user
Upload/delete a post
Like/unlike a post
Comment on a post
See all posts of a user
API Endpoints
POST   /api/register       - Register an account with name, email and password
POST   /api/authenticate   - Login or get access token and refresh token with email and password
POST   /api/follow/{id}    - Follow a user by userID
POST   /api/unfollow/{id}  - Unfollow a user by userID
GET    /api/user           - Get user info of currently logged in user
POST   /api/posts          - Create a new post
GET    /api/posts/{id}     - Get a post info by postID
DELETE /api/posts/{id}     - Delete a post by postID
POST   /api/like/{id}      - Like a post by postID
POST   /api/unlike/{id}    - Unlike a post by postID
POST   /api/comment/{id}   - Comment on a post by postID
GET    /api/posts          - Get info of all posts created by a user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published