Minimal scaffold for AstraPort API (NestJS)
Install and run in development:
npm install
npm run start:devRun tests:
npm testBuild and run production image:
npm run build
docker build -t astraport-api .
docker run -p 3000:3000 astraport-apiAstraPort API is the backend service built with NestJS.
It exposes endpoints for portfolio analysis, risk scoring, and integration with Stellar smart contracts.
- /docs → API usage and endpoint documentation
- /examples → Example API calls and integrations
- /src → NestJS modules and services
- Auth: JWT-based authentication
- Portfolio: Endpoints for wallet and market data
- Risk: Endpoints for risk scoring (from Core AI)
- Contracts: Integration with Soroban smart contracts
- NestJS (TypeScript)
- PostgreSQL
- TypeORM
- Stellar SDK
- Clone the repo
- Install dependencies:
npm install - Run the server:
npm run start:dev
See /examples for sample API requests and integrations.