Installation
Set up Draftly for local development.
Prerequisites
Before getting started, ensure you have:
•Node.js 18+ installed
•npm or pnpm package manager
•A Firebase project configured
•(Optional) Google Gemini API key
Clone & Install
bash
git clone https://github.com/your-repo/draftly.git cd draftly npm install
Copy the environment variables:
bash
cp .env.example .env.local
Fill in your API keys and Firebase configuration.
Environment Variables
| Variable | Description | Required |
|---|---|---|
| GOOGLE_AI_KEY | Gemini API key | Yes |
| NEXT_PUBLIC_FIREBASE_* | Firebase config | Yes |
| FAL_KEY | Fal.ai API key | For Studio |
| REPLICATE_API_TOKEN | Replicate API key | For Studio |
Run Development Server
bash
npm run dev
Open [http://localhost:3000](http://localhost:3000) in your browser. You should see the Draftly homepage.