Skip to content

theubaidistan/QuickAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quick.AI Banner

Quick.AI

A full-stack AI-powered SaaS platform for text generation and image creation β€” built on the PERN stack with Clerk authentication, Gemini, and OpenAI.

Live Demo Backend Server


πŸ›  Tech Stack

Frontend

React Vite Tailwind CSS Axios

Backend

Node.js Express.js Middleware

Database

PostgreSQL NeonDB

Auth & Billing

Clerk Auth & Billing

AI / APIs

Gemini OpenAI


✨ Features

  • πŸ€– AI Text Generation β€” Powered by Google Gemini for fast, accurate text prompts
  • 🎨 AI Image Generation β€” Powered by OpenAI's image generation API
  • πŸ” Authentication & Billing β€” Clerk handles sign-up, sign-in, and subscription billing
  • πŸ—„οΈ PostgreSQL on NeonDB β€” Serverless, scalable database for user and usage data
  • ⚑ Vite + React β€” Lightning-fast frontend with hot module replacement
  • πŸ’¨ Tailwind CSS β€” Utility-first styling for a clean, responsive UI
  • πŸ”„ Axios β€” HTTP client for clean API communication between frontend and backend
  • πŸ›‘οΈ Express Middleware β€” Auth guards, error handling, and request validation on the backend

πŸ“ Project Structure

quick-ai/
β”œβ”€β”€ client/                   # Vite + React frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/       # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ pages/            # Route-level pages
β”‚   β”‚   β”œβ”€β”€ lib/              # Axios instance & helpers
β”‚   β”‚   └── main.jsx
β”‚   β”œβ”€β”€ tailwind.config.js
β”‚   └── vite.config.js
β”‚
β”œβ”€β”€ server/                   # Express backend
β”‚   β”œβ”€β”€ controllers/          # Route handler logic
β”‚   β”œβ”€β”€ middleware/           # Auth, error, validation middleware
β”‚   β”œβ”€β”€ routes/               # API route definitions
β”‚   β”œβ”€β”€ db/                   # NeonDB / PostgreSQL connection
β”‚   └── index.js
β”‚
└── README.md

πŸš€ Getting Started

Prerequisites

  • Node.js β‰₯ 18
  • A NeonDB account and database URL
  • A Clerk account (API keys for auth + billing)
  • Google Gemini API key
  • OpenAI API key

1. Clone the repo

git clone https://github.com/theubaidistan/quick-ai.git
cd quick-ai

2. Configure environment variables

server/.env

DATABASE_URL=your_neondb_connection_string
CLERK_SECRET_KEY=your_clerk_secret_key
GEMINI_API_KEY=your_gemini_api_key
OPENAI_API_KEY=your_openai_api_key
PORT=5000

client/.env

VITE_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
VITE_API_BASE_URL=http://localhost:5000

3. Install dependencies & run

# Backend
cd server
npm install
npm run dev

# Frontend (in a new terminal)
cd client
npm install
npm run dev

🌐 Deployment

Service Platform
Frontend Vercel
Backend Vercel
Database NeonDB (Serverless PostgreSQL)

πŸ“š Course Credit

Built as part of a full-stack JavaScript learning journey following Jonas Schmedtmann's courses on Udemy.


πŸ‘¨β€πŸ’» Author

Ubaidistan

About

Quick AI PERN Stack - The main idea of the project is that users enter text prompts, the application sends these inputs to an AI service through an API, and then displays the generated responses back on the screen in real time. Vercel handles the hosting and deployment, making the application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors