Uses apiLoggerExpress to log all API requests and responses to MongoDB.
From the repo root (build the package first):
npm run build
node example/express/server.jsOr with env vars:
MONGO_URI=mongodb://localhost:27017 PORT=3000 node example/express/server.jsGET http://localhost:3000/healthGET http://localhost:3000/api/usersPOST http://localhost:3000/api/loginwith body{ "email": "user@example.com", "password": "secret" }(password is masked in logs)
Logs are written to the api_logger_example.express_logs collection.