Local Installation
Follow these steps to run ERD Builder Pro on your local machine.
1. Clone Repository
git clone https://github.com/hadziqmtqn/erd-builder-pro.git
cd erd-builder-pro
2. Install Dependencies
You need to install dependencies for both frontend and backend.
npm install
3. Configure Environment
Copy the .env.example file to .env and fill it with your credentials.
cp .env.example .env
For details on filling environment variables, see Environment Variables.
[!TIP] By default, the backend server runs on port
3000. If you need to use a different port (especially in production), you can set it via thePORTvariable in the.envfile.
3a. Database Setup
Set up the database according to your chosen mode. ERD Builder Pro supports three database modes — see Database Setup for a full comparison.
Option A: Supabase PostgreSQL
- Open Supabase dashboard → SQL Editor.
- Run the contents of
supabase_schema.sqlfrom the project root. - Configure
DATABASE_URL,SUPABASE_URL, andSUPABASE_SERVICE_ROLE_KEYin.env.
Option B: Local PostgreSQL
# Create database
createdb erd_builder_pro
# Push schema & seed
npm run db:push:pg:local
npm run db:seed:pg:local
4. Run the Application
Run the following command to start the development server — choose according to your database mode:
Supabase:
npm run dev
Local PostgreSQL:
npm run dev:pg:local
The application will be available at http://localhost:3000.