Skip to content

A Node.js/Express-based REST API for a social media application with AI-powered post description generation.

Notifications You must be signed in to change notification settings

manjaycoder/N2NSOCIAL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Social Media API with Google Gemini Integration

A Node.js/Express-based REST API for a social media application with AI-powered post description generation.

πŸ“Œ Table of Contents

✨ Overview

This project is a Node.js/Express-based REST API that provides core functionalities for a social media application, including user authentication, post creation with image upload, and AI-powered description generation using Google Gemini.

✨ Features

βœ… User Registration & Login
βœ… JWT-based Authentication
βœ… Image Upload (Multer)
βœ… AI Description Generation (Google Gemini)
βœ… Create & Manage Posts

πŸ›  Tech Stack

Backend: Node.js, Express.js
Database: MySQL (or MongoDB, if used)
Authentication: JWT (JSON Web Token)
File Upload: Multer
AI Integration: Google Gemini API
Environment Variables: dotenv

πŸ“‚ Project Structure

project-name/ β”œβ”€β”€ src/
β”‚ β”œβ”€β”€ controllers/ # All controllers (auth, posts) β”‚ β”œβ”€β”€ routes/ # Routes for auth & posts β”‚ β”œβ”€β”€ middleware/ # Authentication middleware β”‚ β”œβ”€β”€ config/ # DB & Gemini config β”‚ └── app.js # Main entry point β”œβ”€β”€ uploads/ # Uploaded images β”œβ”€β”€ .env # Environment variables β”œβ”€β”€ package.json └── README.md

βš™οΈ Installation & Setup

1️⃣ Clone the repository

git clone https://github.com/your-username/your-repo.git
cd your-repo

2️⃣ Install dependencies bassh npm install 3️⃣ Create .env file bash PORT=5000 DB_HOST=localhost DB_USER=root DB_PASS=yourpassword DB_NAME=yourdbname JWT_SECRET=your_jwt_secret GEMINI_API_KEY=your_gemini_api_key

About

A Node.js/Express-based REST API for a social media application with AI-powered post description generation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published