Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.22 KB

File metadata and controls

44 lines (31 loc) · 1.22 KB

Development Setup

This guide is for developers who want to run classiflow locally from source.

Prerequisites

  • Node.js 18+
  • PostgreSQL 12+
  • npm 10+

Setup

  1. Clone and install:
git clone https://github.com/yourusername/classiflow.git
cd classiflow
npm install
  1. Configure environment:
cp .env.example .env

Update values in .env and review ENV_SETUP.md for the full list.

  1. Run migrations:
npm run db:migrate
  1. Start the app:
npm run dev

Open http://localhost:3000.

Note: npm run dev currently sets a local DATABASE_URL in package.json. If you want .env to control it, remove that inline value or run DATABASE_URL=... npm run dev.

Optional: AI suggestions

classiflow can call Taxomind for AI labeling. To enable it locally, run Taxomind and set AI_LABELING_API_URL and AI_LABELING_API_KEY in .env.

Also set AI_SOURCE_SLUG to scope taxonomy keys per deployment. Use the subdomain-domain of your app host (strip www and the final TLD, join with -). For example, if your app runs at https://classiflow.app.rowsquared.org, set AI_SOURCE_SLUG=classiflow-app-rowsquared. For local development you can use any slug (e.g. AI_SOURCE_SLUG=local-dev).