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.
- 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
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
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
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
- Python 3.8+
- Node.js 18.0+
- PostgreSQL
- Clerk account
- Paystack account
- Google AI (Gemini) API key
-
Navigate to the backend directory:
cd backend -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile 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
-
Run database migrations:
alembic upgrade head
-
Start the backend server:
uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8080
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install # or yarn install -
Create a
.env.localfile: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 -
Start the development server:
npm run dev # or yarn dev -
Open http://localhost:3000 in your browser.
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)
- Backend API: http://localhost:8080/docs (when running locally)
- Detailed documentation for both frontend and backend can be found in their respective directories
uvicorn app.main:app --workers 4 --host 0.0.0.0 --port 8080The frontend is configured for deployment on Vercel:
- Push your code to a Git repository
- Import the project into Vercel
- Configure environment variables
- Deploy
For questions or issues, please open an issue in this repository.
