mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-18 03:33:59 -05:00
Merge commit '496274ce4e7a9745d5037a3efef93ff41bfc882a'
This commit is contained in:
954
package-lock.json
generated
954
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,5 +19,12 @@
|
|||||||
"@types/node": "^20.12.7",
|
"@types/node": "^20.12.7",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.4.3"
|
"typescript": "^5.4.3"
|
||||||
|
"type": "module",
|
||||||
|
"main": "server.mjs",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node server.mjs"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"express": "^4.21.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -249,6 +249,42 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>BlackRoad OS</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||||
|
background: #050510;
|
||||||
|
color: #f5f5f5;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
.desktop {
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 24px 32px;
|
||||||
|
border: 1px solid #333;
|
||||||
|
box-shadow: 0 0 40px rgba(0,0,0,0.6);
|
||||||
|
background: radial-gradient(circle at top left, #3f89ff55, #050510 55%);
|
||||||
|
text-align: center;
|
||||||
|
max-width: 640px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin: 4px 0;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
.tag {
|
||||||
|
margin-top: 16px;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -337,6 +373,11 @@
|
|||||||
<footer>
|
<footer>
|
||||||
This placeholder keeps the domain alive while the full BlackRoad experience is wired up.
|
This placeholder keeps the domain alive while the full BlackRoad experience is wired up.
|
||||||
</footer>
|
</footer>
|
||||||
|
<div class="desktop">
|
||||||
|
<h1>BlackRoad OS</h1>
|
||||||
|
<p>Primary app endpoint is online.</p>
|
||||||
|
<p>You’re looking at the app behind <strong>app.blackroad.systems</strong>.</p>
|
||||||
|
<p class="tag">We can wire in agents, API, console, and more after this.</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
21
server.mjs
21
server.mjs
@@ -1,6 +1,9 @@
|
|||||||
import express from 'express';
|
import express from 'express';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from 'url';
|
||||||
|
import express from "express";
|
||||||
|
import path from "path";
|
||||||
|
import { fileURLToPath } from "url";
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
@@ -20,4 +23,22 @@ app.get('*', (_req, res) => {
|
|||||||
|
|
||||||
app.listen(port, () => {
|
app.listen(port, () => {
|
||||||
console.log(`BlackRoad OS placeholder server listening on port ${port}`);
|
console.log(`BlackRoad OS placeholder server listening on port ${port}`);
|
||||||
|
const PORT = process.env.PORT || 8080;
|
||||||
|
|
||||||
|
app.use(express.static(path.join(__dirname, "public")));
|
||||||
|
|
||||||
|
app.get("/health", (_req, res) => {
|
||||||
|
res.json({
|
||||||
|
ok: true,
|
||||||
|
service: "blackroad-operating-system",
|
||||||
|
status: "healthy"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
app.get("*", (_req, res) => {
|
||||||
|
res.sendFile(path.join(__dirname, "public", "index.html"));
|
||||||
|
});
|
||||||
|
|
||||||
|
app.listen(PORT, () => {
|
||||||
|
console.log(`BlackRoad OS app listening on port ${PORT}`);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user