Installation

Get started with Docaflex by setting up your development environment and installing the necessary dependencies.

Prerequisites

  • Node.js 16+ installed on your system
  • PostgreSQL database (Neon recommended)
  • A Lark Base account with developer access
  • A DocaFlex account (get one at DocaFlex platform)

Quick Setup

1. Clone the Repository

git clone https://github.com/virtuenet/docaflex.git
cd docaflex

2. Install Dependencies

npm install

3. Environment Configuration

Create a .env.local file with your credentials:

# Database
DATABASE_URL=your_postgresql_connection_string

# Lark Configuration
LARK_APP_ID=your_lark_app_id
LARK_APP_SECRET=your_lark_app_secret

# DocaFlex API
DOCAFLEX_API_KEY=your_docaflex_api_key

# AI Features (Optional)
OPENAI_API_KEY=your_openai_api_key

# NextAuth
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_nextauth_secret

4. Database Setup

npx prisma db push
npx prisma generate

5. Run Development Server

npm run dev

✅ Success!

Your Docaflex development environment is now ready. Visit http://localhost:3000 to see your application.

Next Steps

Hi there 👋 How can we help?