Skip to content

mohammadEbrahimzadeh/backend-social-media

Repository files navigation

Social media application project

If you need the backend of a project like Instagram, this project is for you

About The Project

This project includes many features such as Instagram for sharing images in the form of posts. In this project, features such as adding posts, saving posts, likes, comments, post management tools are used by the admin. This project is developed using NodeJS and ExpressJS and requires MongoDB database.

Built With

Node.js

Express js

momgodb

Swagger

Features

  • API base
  • Developed with REST API
  • Register and Login
  • Update password
  • Forget password (OTP Email)
  • Ban The User
  • Show user information
  • Authentication (Access token and refresh token JWT)
  • Create the post
  • Image uploader
  • Like and dislike the post
  • Save and unsave the post
  • Add the comment
  • Edit the post
  • Delete the post
  • Delete the comment
  • Get all posts
  • Show all user posts
  • Search the posts
  • Show the post details
  • Show the save posts

Prerequisites

Environment Variables

Because this is a public project, it doesn't matter if this part is available to everyone

To run this project, you will need to add the following environment variables to your .env file

PORT= 4002

MONGO_URL=mongodb://127.0.0.1:27017/store

JWT_SECRET = DFNGHRN647NJHV5463VXE

REFRESH_JWT_EXP = 30

NODE_ENV = "development"

Run Locally

Clone the project

  git clone https://github.com/mohammadEbrahimzadeh/backend-social-media

Go to the project directory

  cd backend-social-media

Install dependencies

  npm install

Start the server

  npm run dev

API document

To access the API document after running the project, enter the following address in your browser

http://localhost:4002/api-doc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •