Express + TypeScript REST API for the NeuroWealth platform — AI-assisted portfolio management backed by Stellar smart contracts.
- API Documentation:
docs/openapi.yaml- Full OpenAPI 3.1 specification - SLO Guidance:
docs/SLO_GUIDANCE.md- Latency budgets and performance targets - Observability:
docs/OBSERVABILITY.md- Monitoring and alerting guidance - Runbook:
docs/RUNBOOK.md- Production operations and incident response - Troubleshooting:
docs/TROUBLESHOOTING.md- Local development troubleshooting guide
The full OpenAPI 3.1 specification lives at docs/openapi.yaml.
It covers:
| Tag | Base path | Auth |
|---|---|---|
| health | /health |
None |
| auth | /api/auth |
None (issues JWT) |
| portfolio | /api/portfolio |
Bearer JWT |
| transactions | /api/transactions |
Bearer JWT |
| deposit | /api/deposit |
Bearer JWT |
| withdraw | /api/withdraw |
Bearer JWT |
| vault | /api/vault |
Bearer JWT |
| admin | /api/admin |
X-Admin-Token header |
npx @redocly/cli preview-docs docs/openapi.yamlWhen you add or change a route, update docs/openapi.yaml in the same PR. The api-contract CI job will lint the spec and run smoke tests automatically.
This API follows semantic versioning. Breaking changes (removed fields, changed response shapes, new required parameters) increment the major version and are announced at least two weeks before release.
cp .env.example .env
npm install
npm run devTroubleshooting: If you encounter issues during setup, see the Troubleshooting Guide for common problems and solutions.
npm testRun a health-check smoke test against a running server:
npm run smokesmoke:health is also available as a named alias for the startup health check. Both run the same script.