Install
npm install @xeplr/base-apisPeer dependencies you provide: express, multer
The idea
createApp wires an Express service with the auth gate already in front of every route, and genericRoute gives any model a list / get / save / delete API — so a new resource is a model and one line, not a hand-written controller.
Where it sits
Part of Services — long-running pieces. Each one boots with the same init() / start() / router() shape and mounts into an Express app you already have.
Builds on
Third-party dependencies
- cookie-parser
- cors
- debug
- http-errors
Documentation for @xeplr/base-apis is in its README on npm.
These packages are what Xeplr Analytics is made of
If you are assembling this yourself, it may be worth seeing the assembled version first.