Skip to content

mandilkhadka/LinkedIn-Post-Generator

Repository files navigation

LinkedIn Post Drafting App Banner

✍️ LinkedIn Post Drafting App

Ruby Rails PostgreSQL Gemini License

Turn your messy notes into polished, post-ready LinkedIn content with the power of AI. Built with Rails 7 + Gemini API for makers, founders, and anyone who struggles with “How do I start this post?”


🌟 What It Does

  • 📝 Paste your raw notes or half-baked ideas.
  • 🎨 Choose a tone → Professional, Friendly, Witty, or Inspirational.
  • 📏 Pick a length → Short, Medium, or Long.
  • 🔖 Let AI sprinkle in relevant hashtags (optional).
  • 📚 Save your drafts, refine later, and post with confidence.

🛠 Tech Stack

  • Ruby on Rails 7
  • PostgreSQL (storage)
  • Gemini API (AI magic ✨)
  • dotenv-rails (safe secrets)

🚀 Getting Started

1️⃣ Clone this repo

git clone https://github.com/your-username/linkedin-post-drafting-app.git
cd linkedin-post-drafting-app

2️⃣ Install dependencies

bundle install

3️⃣ Configure secrets

Create a .env file in the project root:
env
GEMINI_API_KEY=your-gemini-api-key-here
DATABASE_URL=postgres://user:password@localhost:5432/linkedin_dev
⚠️ Never commit your API key to GitHub.

4️⃣ Setup the database

rails db:create db:migrate

5️⃣ Run the app

rails server
Then open 👉 http://localhost:3000

🎬 Demo Flow

✍️ Drop in some quick notes:
"launched new feature, boosted user growth 30%"

🎭 Pick your vibe → Witty
📏 Choose length → Short
🔮 Hit Generate Draft

🎉 Boom → “We just hit a huge milestone…” (AI polishes it up).

📂 Project Anatomy

app/models/post.rb → Notes + AI output storage

app/services/gemini_service.rb → The brain (calls Gemini API)

app/controllers/posts_controller.rb → The traffic cop 🚦

app/views/posts/ → Simple UI forms + results

🛣 Roadmap

- 🛠 Refactoring → Code works, but needs cleanup and optimization
- ⏳ Async generation with background jobs
- 🔴 Live-stream drafts via ActionCable
- 🔐 User accounts (multi-user)
- 📤 One-click publish to LinkedIn
- 🎨 Sleeker UI with TailwindCSS
- 📱 Mobile-friendly UI for on-the-go post drafting
- 🌐 Multi-language support (English, Japanese, more)
- ✍️ Rich text editor with formatting & emoji picker
- 📊 Post analytics dashboard (views, engagement, performance)
- 🤖 Smarter hashtag + keyword suggestions
- 🔔 Draft reminders & scheduling
- 🧑‍🤝‍🧑 Team collaboration (share + edit drafts together)

About

AI-powered Rails app that transforms raw notes into polished, post-ready LinkedIn content with tone, length, hashtag customization and much more features to come.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors