Skip to content
HarryleverPublic

About

An AI-powered content summarization and essay generation platform for users seeking to write smarter and read faster. I developed the full-stack Next.js/FastAPI application with secure Clerk authentication, Paystack-integrated tiered subscription management, and a credit-based usage model. Google AI (Gemini) integrated.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Quotura - AI Summarizer SaaS

Quotura Logo

Quotura is an AI-powered content summarization and essay generation platform that helps users write smarter and read faster. This full-stack application provides intelligent text processing with customizable options for length, format, and tone.

✨ Features

  • AI-Powered Summarization: Generate concise summaries with customizable formats and lengths
  • Essay Generation: AI-driven essay creation based on specified topics, styles, and structures
  • User Authentication: Secure authentication via Clerk
  • Subscription Management: Tiered subscription plans with Paystack payment integration
  • Credit System: Token-based usage tracking for API calls
  • Responsive Design: Works seamlessly across desktop and mobile devices

🏗️ Architecture

The project is structured as a monorepo with separate frontend and backend directories:

quotura/
├── frontend/       # Next.js 14 application
├── backend/        # FastAPI service
└── README.md       # This file

Frontend (Next.js)

The frontend is built with Next.js 14 using the App Router, TypeScript, and TailwindCSS. It provides:

  • Clean, intuitive dashboard interface
  • Comprehensive onboarding flow
  • Responsive design for all device sizes
  • Copy and format controls for output customization
  • Subscription plan management

Backend (FastAPI)

The backend is powered by FastAPI and provides:

  • RESTful API endpoints for all functionality
  • PostgreSQL database integration
  • Google AI (Gemini) integration for AI processing
  • Clerk authentication validation
  • Paystack subscription handling
  • Background tasks for subscription management

🚀 Getting Started

Prerequisites

  • Python 3.8+
  • Node.js 18.0+
  • PostgreSQL
  • Clerk account
  • Paystack account
  • Google AI (Gemini) API key

Backend Setup

  1. Navigate to the backend directory:

    cd backend
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Create a .env file based on the example:

    DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/db_name
    DATABASE_URL_MIGRATION=postgresql://user:password@localhost:5432/db_name
    GOOGLE_API_KEY=your_google_api_key
    CLERK_BACKEND_URL=https://api.clerk.dev/v1
    CLERK_SECRET_KEY=your_clerk_secret_key
    CORS_ORIGINS=http://localhost:3000,https://your-frontend-domain.com
    PAYSTACK_BACKEND_URL=https://api.paystack.co
    PAYSTACK_SECRET_KEY=your_paystack_secret_key
  5. Run database migrations:

    alembic upgrade head
  6. Start the backend server:

    uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8080

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend
  2. Install dependencies:

    npm install
    # or yarn install
  3. Create a .env.local file:

    NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
    CLERK_SECRET_KEY=your_clerk_secret_key
    NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
    NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
    NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/a/board
    NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/a/onboard
    NEXT_PUBLIC_API_BASE_URL=http://localhost:8080
    NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY=your_paystack_public_key
    
  4. Start the development server:

    npm run dev
    # or yarn dev
  5. Open http://localhost:3000 in your browser.

💰 Subscription Plans

Quotura offers multiple subscription tiers:

  • Monthly Plan: 250 credits per month
  • Annual Plan: 3000 credits per year (20% savings)
  • Pro Monthly Plan: 520 credits per month
  • Pro Annual Plan: 6240 credits per year (20% savings)

📚 Documentation

  • Backend API: http://localhost:8080/docs (when running locally)
  • Detailed documentation for both frontend and backend can be found in their respective directories

🚢 Deployment

Backend Deployment

uvicorn app.main:app --workers 4 --host 0.0.0.0 --port 8080

Frontend Deployment

The frontend is configured for deployment on Vercel:

  1. Push your code to a Git repository
  2. Import the project into Vercel
  3. Configure environment variables
  4. Deploy

📝 License

MIT

📞 Support

For questions or issues, please open an issue in this repository.

About

An AI-powered content summarization and essay generation platform for users seeking to write smarter and read faster. I developed the full-stack Next.js/FastAPI application with secure Clerk authentication, Paystack-integrated tiered subscription management, and a credit-based usage model. Google AI (Gemini) integrated.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages