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.
- 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.
-
Clone the repository:
git clone https://github.com/Deejai007/social-media-backend.git
-
Install dependencies:
cd social-media-clone-backend npm install
-
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
-
Start the server:
node index.js
For detailed API endpoints and usage, refer to the API Documentation.
Contributions are welcome! Please fork the repository and submit pull requests to contribute.
This project is licensed under the MIT License.