Skip to content

APV Backend API

The APV backend is a Node.js + Express API backed by MongoDB. It exposes two route groups for veterinarians and patients and uses JWT-based auth.

http://localhost:4000

Terminal window
npm install
npm run dev
  • Send Authorization: Bearer <token> on protected routes.
  • Tokens include { id: <veterinario_id> } and expire in 30d.
  • Auth failures return 403 with a JSON { "msg": "..." } response.
  • /api/veterinarios
  • /api/pacientes

For environment variables and local setup, see Getting Started.