Skip to content

About

Ethogram Backend API - REST API for behavioral observation data

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Ethogram API

Backend API for the WBS Ethogram observation system. This is the backend half of a two-service app — the React frontend (wbs-ethogram-form, on Vercel) submits here. Cross-repo context and current focus live in ethogram-notes.

Status

✅ Deployed — Production API live on Railway
✅ Observation storage — Submit and store behavioral observations
✅ Excel generation — Automatic Excel file creation
✅ Email delivery — Send observations via Resend
✅ Share & Download — Share observations or download Excel directly

Quick Start (Local Development)

# Install dependencies
npm install

# Set up environment
cp .env.example .env  # Then edit with your credentials

# Run migrations
npm run db:migrate

# Start dev server
npm run dev

# Run tests
npm test

Endpoints

Method Path Description
GET /api/health Health check
POST /api/observations/submit Submit observation, auto-emails Excel
POST /api/observations/:id/share Email observation to user (rate limited)
GET /api/observations/:id/excel Download observation as Excel file

Documentation

About

Ethogram Backend API - REST API for behavioral observation data

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages