a99117dc98
bump to v 0.1.1, change default port to 3003, fix Dockerfile to build & run separately
2026-06-28 17:29:21 -06:00
Jose Olarte III
7a2bb88207
feat(config): load .env and log Firebase credential source at startup
...
Add dotenv via src/env.ts so dev/start read .env before Firebase init,
and log whether credentials come from FIREBASE_SERVICE_ACCOUNT_JSON or ADC.
2026-06-11 17:50:16 +08:00
2dba6c3597
Merge branch 'master' into docker
2026-06-05 19:30:50 -06:00
Jose Olarte III
dffb86007e
fix(cors): enable preflight for Capacitor WebView requests
...
Add express cors middleware with reflected origin so Android clients
from https://localhost receive Access-Control-Allow-* headers on
OPTIONS and can proceed with POST requests.
2026-06-04 18:26:22 +08:00
c010c861b4
attempt a Docker file but it fails on step 5
2026-05-27 20:37:33 -06:00
Jose Olarte III
4bf57d26fd
Add Bearer JWT auth middleware for notification routes
...
Mirror image-api’s DID JWT verification (src/vc + requireAuth) so
/notifications/* require a valid Authorization header while /health
stays public. Attach req.did, req.jwt, and req.auth for downstream use.
2026-05-19 18:23:41 +08:00
Jose Olarte III
d311b6a504
feat(fcm): add Firebase Admin SDK and messaging export
...
Wire firebase-admin with ADC or FIREBASE_SERVICE_ACCOUNT_JSON,
export messaging from src/services/firebase.ts, and load it at
server startup.
2026-05-11 14:47:05 +08:00
Jose Olarte III
94c38bac74
feat(backend): scaffold Express API with health and module layout
...
Add src/routes/notifications, services/pushService, models/device,
scheduler stubs, and entrypoint with GET /health and startup log.
2026-05-11 14:33:32 +08:00