API backend for ChronoPay — time tokenization and scheduling marketplace on Stellar.
- Express API with TypeScript
- Health and stub API routes (e.g.
/api/v1/slots) - Ready for Stellar Horizon integration, token service, and scheduling logic
- Node.js 20+
- npm
# Clone the repo (or use your fork)
git clone <repo-url>
cd chronopay-backend
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Start dev server (with hot reload)
npm run dev
# Start production server
npm run start| Script | Description |
|---|---|
npm run build |
Compile TypeScript to dist/ |
npm run start |
Run production server |
npm run dev |
Run dev server with tsx watch |
npm test |
Run Jest tests |
GET /health— Health check; returns{ status: "ok", service: "chronopay-backend" }GET /api/v1/slots— List time slots (currently returns empty array)
- Fork the repo and create a branch from
main. - Install deps and run tests:
npm install && npm test. - Make changes; keep the build passing:
npm run build. - Open a pull request. CI must pass (install, build, test).
On every push and pull request to main, GitHub Actions runs:
- Install:
npm ci - Build:
npm run build - Tests:
npm test
MIT