Coder Social home page Coder Social logo

the_social_network_backend's Introduction

React + Vite

Social Media Application

A full-featured social media application with functionalities for posting, chatting,searching,updating,deleteing,real time like,comment,follow,unfollow and more. This project is built using modern web technologies including React, Node.js, Express, MongoDB, and WebSocket(Chat Engine) for real-time communication.

Features

  • User Authentication (Login, Signup)
  • Create, Read, Update, and Delete Posts
  • Real-time Chat one to one or with group chat Functionality
  • multiple images/videos can be uploaded at a time
  • Like and Comment on Posts
  • follow and unfollow any user
  • user account can be check by clicking on the profile of user

Technologies Used

  • Frontend: React, Vite, Tailwind CSS,
  • Backend: Node.js, Express
  • Database: MongoDB
  • Real-time Communication: WebSocket(Chat Engine)
  • libraries: Shadcn UI
  • Deployment: Heroku (Backend) (frontend not deployed)

Setup Instructions

Follow these steps to set up and run the project locally.

  • i have deployed Frontend and Backend in different repositorys.

Installation

  1. Clone the Frontend of repository

      https://github.com/Shivam2534/The_Social_Network_Frontend.git
    
    - Install dependencies: npm install
    
    - run the frontend: npm run dev
    
  2. Clone the Backend of repository

    https://github.com/Shivam2534/The_Social_Network_Backend.git

  • Install dependencies: npm install

  • Create a .env file in the Backend directory and add the following environment variables:

    PORT = 8000 MONGODB_URI = mongodb+srv://shivamkanchole:[email protected] CORS_ORIGIN = *

    ACCESS_TOKEN_SECRET = eyJhbGciOiJIUzI1NiJ9eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIi ACCESS_TOKEN_EXPIRY = "1d"

    REFRESH_TOKEN_SECRET = eyJhbGciOiJIUzI1NiJ9eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIi REFRESH_TOKEN_EXPIRY = "10d"

    CLOUDINARY_CLOUD_NAME = youtube-cloud-content CLOUDINARY_API_KEY = 689134239623785 CLOUDINARY_API_SECRET = OICLY-yOTllUsgaYE5UAnWvUhMs

  • Start the backend server:

    npm run dev
  1. Demo Accounts

    -  fisrt account
    1. usermame - shivam_iitr
    2. email- [email protected]
    3. pass - 12345
    -  second account
    1. usermame - lalu_iitr
    2. email- [email protected]
    3. pass - 12345

the_social_network_backend's People

Contributors

shivamkanchole avatar shivam2534 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.