A powerful AI-driven social media post generator that creates engaging content and matching images for multiple platforms including LinkedIn, Twitter, and Instagram.
- AI-powered content generation using Gemini API
- Image generation using Hugging Face API
- Multi-platform support (LinkedIn, Twitter, Instagram)
- Engagement score analysis
- Customizable post length and creativity settings
- Real-time content preview
- One-click copy and download functionality
- User authentication and post history
- Frontend: Next.js, Material-UI, TailwindCSS
- Backend: Python (Flask)
- APIs: Google Gemini, Hugging Face
- Database: MongoDB
- Authentication: JWT
- Node.js (v15 or higher)
- Python 3.8+
- MongoDB
- Google Gemini API key
- Hugging Face API key
- Clone the repository
git clone https://github.com/Naman0807/AI-post-gen.git
cd AI-post-gen
npm install- Start the development server
npm run dev- Install Python dependencies
pip install -r requirements.txt- Set up environment variables
cp .envGEMINI_API_KEY=your_gemini_api_key
HUGGINGFACE_API_KEY=your_huggingface_api_key
MONGODB_URI=your_mongodb_uri
JWT_SECRET_KEY=your_jwt_secret
- Start the Flask server
python app.py- Register/Login to access the dashboard
- Configure your API keys in the dashboard
- Select your target platform (LinkedIn, Twitter, or Instagram)
- Enter your topic and customize generation settings
- Click "Generate Post" to create content
- View the engagement score and preview the generated content
- Copy the content or download generated images
- Save posts to your history
- POST /api/auth/register - User registration
- POST /api/auth/login - User authentication
- POST /api/generate_post - Generate content and images
- GET /api/posts - Retrieve user's post history
- POST /api/initialize - Initialize API configurations
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT License
For support, email parmarnaman19@gmail.com or open an issue in the repository.
- Google Gemini API for content generation
- Hugging Face for image generation
- Material-UI for the component library
- Next.js team for the amazing framework