This project is a Next.js application that implements a Consultant Report Generator. It allows users to generate reports based on URLs and custom instructions, as well as edit and format the generated content.
This is the main component of the application. It includes:
- A form for URL and instruction input
- A rich text editor for report content
- Formatting controls for the editor
- A function to generate random sample reports
- URL (string)
- Instructions (string)
- Generated report content (HTML)
This serverless function handles the report generation process:
- Crawls the provided URL using Firecrawl
- Generates a report using OpenAI's GPT model
- URL (string)
- Instructions (string)
- Generated HTML content
- Crawl data
Custom UI components used throughout the application:
- Button
- Input
- Textarea
- Global styles defined in app/globals.css
- Tailwind CSS used for styling
- Custom font configuration in app/layout.tsx
- URL-based report generation
- Rich text editing capabilities
- Random sample report generation
- Responsive design
- Next.js (React framework)
- TypeScript
- Tailwind CSS
- TipTap (rich text editor)
- OpenAI API
- Firecrawl (web crawling)
- Install dependencies:
npm install
- Set up environment variables (OpenAI API key, Firecrawl API key)
- Run the development server:
npm run dev
- Access the application at
http://localhost:3000
The project is configured for easy deployment on Vercel, the creators of Next.js.