AI-powered LinkedIn post generator built with Next.js 15 and Google Gemini.
- 🤖 AI generates 5 unique post variants
- 🎨 5 styles: Inspirational, Educational, Success Story, Tips, Provocative
- ⚡ Rate limiting: 5 generations/day per IP
- 💎 PRO mode with unlimited access
- 📋 One-click copy to clipboard
- Next.js 15 (App Router)
- TypeScript
- Tailwind CSS
- Google Gemini AI (gemini-2.0-flash-exp)
- Clone the repository:
git clone https://github.com/ViVaLaDaniel/Linkedin-Post-Generation.git
cd Linkedin-Post-Generation- Install dependencies:
npm install- Create
.envfile:
GEMINI_API_KEY=your_gemini_api_key_here
PRO_CODES=PRO-CODE1,PRO-CODE2
NODE_ENV=development- Run development server:
npm run dev- Upload files to server
- Configure nginx:
location /linkedin {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}- Start with PM2:
npm install
npm run build
pm2 start npm --name "linkedin-ai" -- start| Variable | Description |
|---|---|
GEMINI_API_KEY |
Google Gemini API key |
PRO_CODES |
Comma-separated PRO activation codes |
NODE_ENV |
Environment (development/production) |
MIT