Skip to content

A backend project for a social media platform APIs in NodeJS and database schema implementation is in MongoDB. This project support features like getting a user profile, following a user, uploading a post, deleting a post, liking a post, unlike a liked post, and commenting on a post related to APIs.

Notifications You must be signed in to change notification settings

prashantk01/social-media-platform-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

social-media-platform-backend

Back End Assignment - Full Time

Problem Statement

  • Build APIs for a social media platform in either NodeJS or Python
  • The API should support features like getting a user profile, follow a user, upload a post, delete a post, like a post, unlike a liked post, and comment on a post, create a user
  • Design the database schema and implement in PostgreSQL or MongoDB

Techstack and packages Used

  • NodeJS, Express, MongoDB
  • jsonwebtoken, @sendgrid/mail, bcryptjs, validator, dotenv

API Endpoints

  • GET:

    • /api/user/

    • /api/user/authenticate

    • /api/posts/

    • /api/posts/:id

    • /test

  • POST:

    • /api/posts

    • /api/user

  • PUT:

    • /api/posts/like/:id

    • /api/posts/unlike/:id

    • /api/comment/:id

    • /api/user/follow/:id

    • /api/unfollow/:id

  • DELETE:

    • /api/posts/:id

Steps to build and run this project at your setup

  • git clone <"project-link">
  • npm i
  • npm run dev

Heroku deployed link for this project

About

A backend project for a social media platform APIs in NodeJS and database schema implementation is in MongoDB. This project support features like getting a user profile, following a user, uploading a post, deleting a post, liking a post, unlike a liked post, and commenting on a post related to APIs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published