https://github.com/mandilkhadka/linkedin-post-generator
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.
https://github.com/mandilkhadka/linkedin-post-generator
gemini-api postgresql ruby ruby-on-rails stimulus-js turbo
Last synced: 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/mandilkhadka/linkedin-post-generator
- Owner: mandilkhadka
- Created: 2025-09-26T06:19:50.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-09-29T15:11:04.000Z (9 months ago)
- Last Synced: 2025-09-29T17:21:26.305Z (9 months ago)
- Topics: gemini-api, postgresql, ruby, ruby-on-rails, stimulus-js, turbo
- Language: Ruby
- Homepage:
- Size: 1.12 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# โ๏ธ LinkedIn Post Drafting App





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
```bash
git clone https://github.com/your-username/linkedin-post-drafting-app.git
cd linkedin-post-drafting-app
```
### 2๏ธโฃ Install dependencies
```bash
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
```bash
rails db:create db:migrate
```
### 5๏ธโฃ Run the app
```bash
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)
```
---