From installation to production deployment, get started with LabAnimal quickly
# Clone the project git clone https://github.com/xxjzone01-cyber/labanimal.git cd labanimal # Install dependencies pnpm install
# Copy environment variable template cp packages/api/.env.example packages/api/.env # Edit .env, set PostgreSQL connection string # DATABASE_URL="postgresql://user:password@localhost:5432/labanimal" # Run database migration pnpm --filter @labanimal/db push # Generate Prisma Client pnpm --filter @labanimal/db generate # Seed sample data (optional) pnpm --filter @labanimal/db seed
# Start API + frontend simultaneously (Turborepo) pnpm dev # API: http://localhost:3001 # Frontend: http://localhost:5173
# Run all tests (103 test cases) pnpm --filter @labanimal/api test # Watch mode pnpm --filter @labanimal/api test:watch
API base path: /api, all endpoints require JWT Bearer Token (except register/login).
/api
POST
/api/auth/send-code
/api/auth/register
/api/auth/login
GET
/api/animals?labId=xxx
/api/animals
PUT
/api/animals/:id
DELETE
/api/health-records?labId=xxx
/api/health-records
/api/protocols?labId=xxx
/api/protocols
/api/protocols/:id
/api/license/sign
/api/license/verify
/api/license/verify/:hash
/api/rooms, /api/racks, /api/cages
/api/breedings
/api/death-reports
/api/medications
/api/audit-log
/api/electronic-signatures
/api/trainings
/api/api-keys
/api/subscriptions
Built-in AVMA Guidelines 2020 rule engine, automatically matches compliant euthanasia methods by species, age, and equipment.
Based on NRC Guide 2011 standard, real-time calculation of maximum housing density.
Meets FDA electronic records and electronic signature regulatory requirements.
One-click generation of reports required for AAALAC certification.
Use labanimal.cloud directly, no need to deploy yourself.
# 1. Clone and install git clone https://github.com/xxjzone01-cyber/labanimal.git cd labanimal && pnpm install # 2. Build pnpm build # 3. Configure environment variables cp packages/api/.env.example packages/api/.env # Edit .env to set DATABASE_URL, AUTH_SECRET, etc. # 4. Run database migration pnpm --filter @labanimal/db push pnpm --filter @labanimal/db generate # 5. Start API cd packages/api && node dist/index.js # 6. Deploy frontend (packages/app/dist) to any static hosting
For organizations needing full data control, starting at $5,000 (one-time payment).
DATABASE_URL
AUTH_SECRET
PORT
CORS_ORIGIN
BREVO_API_KEY
LICENSE_PRIVATE_KEY
LICENSE_PUBLIC_KEY