Skip to content

Backend implementation of a social media clone using Node.js, Express.js, Sequelize, and PostgreSQL.

Notifications You must be signed in to change notification settings

Deejai007/social-media-backend

Repository files navigation

Social Media Clone Backend

This repository contains the backend implementation of a social media clone built using Node.js, Express.js, Sequelize, and PostgreSQL. It includes features like JWT authentication, email verification using OTP, and integration with Cloudinary for image storage.


Features

  • JWT Authentication: Secure user authentication using JSON Web Tokens.
  • Supabase:for cloud PostgreSQL database .
  • Sequelize: Promise-based Node.js ORM for PostgreSQL.
  • Cloudinary Image Storage: Store and manage images efficiently with Cloudinary.
  • Email Verification: Verify user emails using OTP.

Installation

  1. Clone the repository:

    git clone https://github.com/Deejai007/social-media-backend.git
    
  2. Install dependencies:

    cd social-media-clone-backend
    npm install
    
  3. Set up environment variables:

    DATABASE_URL=your_db_url
    PORT=8967
    # nodemailer
    m_email=nodemailer_mail
    m_password=nodemailer_app_password
    # jwt secret
    ACCESS_TOKEN_SECRET=_jwt_secret
    # cloudinary
    cloudinary_cloudname=your_cloud_name
    cloudinary_apikey=your_api_key
    cloudinary_apisecret=your_api_secret
    
  4. Start the server:

    node index.js

API Documentation

For detailed API endpoints and usage, refer to the API Documentation.


Contributing

Contributions are welcome! Please fork the repository and submit pull requests to contribute.


License

This project is licensed under the MIT License.

About

Backend implementation of a social media clone using Node.js, Express.js, Sequelize, and PostgreSQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published