Skip to content

This is the backend for Sociial, a social media app built with Node.js, Express.js, Socket.IO, and MongoDB. The backend handles user authentication, real-time messaging (chats, group chats, reacts), media management (posts, videos, comments, likes), audio/video calls (WebRTC) and much more.

Notifications You must be signed in to change notification settings

sethshivam11/social-media-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues

LinkedIn


Logo

Sociial

This is the backend for Sociial, a social media app built with Node.js, Express.js, Socket.IO, and MongoDB. The backend handles user authentication, real-time messaging (chats, group chats, reacts), media management (posts, videos, comments, likes), audio/video calls (WebRTC) and much more.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. Contact

About The Project

Product Name Screen Shot

Built With

  • Node.js Badge
  • MongoDB Badge
  • Express Badge
  • Socket.io Badge
  • Cloudinary Badge
  • Passport Badge
  • JSON Web Tokens Badge
  • Firebase Badge
  • Google Authenticator Badge

Getting Started

Installation

  1. Clone the repo

    git clone https://github.com/sethshivam11/social-media-backend.git
  2. Install NPM packages

    npm install
  3. Enter your environment variables in nodemon.json

    {
     "env": {
       "MONGODB_URI": "YOUR_MONGODB_URI",
       "DB_NAME": "ANY_DB_NAME",
       "PORT": 3000,
       "CLOUDINARY_CLOUD_NAME": "YOUR_CLOUD_NAME",
       "CLOUDINARY_API_KEY": "YOUR_API_KEY",
       "CLOUDINARY_API_SECRET": "YOUR_API_SECRET",
       "CLOUDINARY_UPLOAD_PRESET": "YOUR_CLOUDINARY_UPLOAD_PRESET",
       "TOKEN_SECRET": "YOUR_TOKEN_SECRET",
       "CORS_ORIGIN": "YOUR_CORS_ORIGIN",
       "MAIL_USER": "YOUR_MAIL_ID",
       "MAIL_PASSWORD": "YOUR_MAIL_PASSWORD",
       "ICON_URL": "YOUR_ICON_URL",
       "PUBLIC_URL": "YOUR_PUBLIC_URL",
       "FIREBASE_ADMIN": "YOUR_FIREBASE_ADMIN_JSON",
       "IMAGE_URL": "YOUR_LOGO_IMAGE_URL",
       "RELOAD_INTERVAL": "YOUR_RELOAD_INTERVAL",
       "COOKIE_EXPIRY": "ANY_COOKIE_EXPIRY",
       "NODE_ENV": "production",
       "GOOGLE_CLIENT_ID": "YOUR_GOOGLE_CLIENT_ID",
       "GOOGLE_CLIENT_SECRET": "YOUR_GOOGLE_CLIENT_SECRET",
       "GOOGLE_CALLBACK_URL": "YOUR_GOOGLE_CALLBACK_URL",
       "CLIENT_SSO_REDIRECT_URL": "YOUR_CLIENT_SSO_REDIRECT_URL",
     }
    }
  4. Change git remote url to avoid accidental pushes to base project

    git remote set-url origin github-username/repo-url
    git remote -v # confirm the changes

Usage

You can get the API documentation here.

For frontend code visit https://github.com/sethshivam11/sociial

You can test them and use it in your projects as well.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Top contributors:

contrib.rocks image

Contact

Shivam - @sethshivam11 - [email protected]

Project Link: https://github.com/sethshivam11/social-media-backend

About

This is the backend for Sociial, a social media app built with Node.js, Express.js, Socket.IO, and MongoDB. The backend handles user authentication, real-time messaging (chats, group chats, reacts), media management (posts, videos, comments, likes), audio/video calls (WebRTC) and much more.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published