Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 938 Bytes

File metadata and controls

33 lines (23 loc) · 938 Bytes

API Starter Kit

A minimal Node.js / Fastify JSON API, ready to deploy on Nullplatform.

Endpoints

Method Path Response
GET /health { "status": "ok" } — used by scope health checks
GET / { "message": "Hello from the Nullplatform API Starter Kit" }

Run locally

npm install
npm start
# → listening on http://0.0.0.0:8080

The server honors the PORT and HOST environment variables (defaults 8080 / 0.0.0.0).

Build

docker build -t main .

CI/CD

.github/workflows/ci.yml runs on every push to main: it starts a nullplatform build, builds the Docker image, pushes it as a docker-image asset, and reports the build status back to nullplatform.