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_key | Fal.ai — Seedream hero stills, LTX 2.3 Fast motion, extend | For full builder media |
| API-Easy / Google video vars | Veo motion in the builder | As in .env.example |
Run Development Server
bash
npm run dev
Open [http://localhost:3000](http://localhost:3000) in your browser. You should see the Draftly homepage.