DocsGetting StartedInstallation

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

VariableDescriptionRequired
GOOGLE_AI_KEYGemini API keyYes
NEXT_PUBLIC_FIREBASE_*Firebase configYes
FAL_KEYFal.ai API keyFor Studio
REPLICATE_API_TOKENReplicate API keyFor Studio

Run Development Server

bash
npm run dev

Open [http://localhost:3000](http://localhost:3000) in your browser. You should see the Draftly homepage.