Skip to content

Repository files navigation

AgriPro+ Platform API

The Node/Express API for schemes, support requests, and crop intelligence. Version 2 is designed for serverless reuse: database connections are cached, payload sizes are bounded, writes are protected, and the exported 96-tree model runs in-process without a fragile external ML runtime.

Run locally

cp .env.example .env
npm install
npm run dev

The API is available at http://localhost:4000; readiness is reported by GET /api/health.

Routes

  • POST /api/crops/recommend — validated, in-process model inference
  • GET /api/schemes — searchable, paginated schemes
  • GET /api/schemes/:id — one scheme
  • POST /api/schemes — administrator-only scheme creation
  • POST /api/message/send — validated support request

See .env.example for deployment configuration. Never commit the real MongoDB URI or administrator key.

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages