Node.js + TypeScript API that compares cost-of-living baskets across cities. Includes Jest tests, Docker, Jenkins pipeline, and SonarCloud config.
npm ci
npm run dev
# http://localhost:3000/healthnpm test
npm run coveragedocker build -t cola:latest .
docker run -p 3000:3000 cola:latest- Manage Jenkins → Tools → NodeJS → add tool named Node18
- Create pipeline from this repo (uses
Jenkinsfile) - Add credential: Secret text with ID
SONAR_TOKEN(your SonarCloud token) - Build → SonarCloud Analysis uploads results
GET /healthGET /locations/GET /locations/:idGET /compare?from=mel&to=syd&income=5000GET /expenses/POST /expenses/PUT /expenses/:id/DELETE /expenses/:id