Add express scaffolding for backend services

This commit is contained in:
Alexa Amundson
2025-11-21 00:12:25 -06:00
parent b42da04208
commit 17ed67829b
16 changed files with 7392 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import express from "express";
import cors from "cors";
import dotenv from "dotenv";
dotenv.config();
const app = express();
app.use(cors());
app.use(express.json());
const PORT = process.env.PORT || 8080;
const SERVICE_NAME = "blackroad-os-agents";
app.get("/", (_req, res) => {
res.json({
service: SERVICE_NAME,
status: "ok",
message: "BlackRoad OS Agents Orchestrator root"
});
});
app.get("/health", (_req, res) => {
res.json({
service: SERVICE_NAME,
status: "ok"
});
});
app.listen(PORT, () => {
console.log(`${SERVICE_NAME} listening on port ${PORT}`);
});