feat: bootstrap vela UI and gateway workspace

Establish the monorepo, tooling, and starter apps so UI and gateway development can begin from a documented, runnable baseline.
This commit is contained in:
2026-04-08 17:49:46 +02:00
commit bba0095bc0
23 changed files with 2023 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
const Fastify = require('fastify');
function buildServer() {
const app = Fastify({ logger: true });
app.get('/', async () => ({
service: 'vela-gateway',
status: 'ok',
transport: 'http',
next: 'websocket session skeleton'
}));
app.get('/health', async () => ({ status: 'ok' }));
return app;
}
async function start() {
const app = buildServer();
const port = Number(process.env.PORT ?? 3001);
const host = process.env.HOST ?? '0.0.0.0';
try {
await app.listen({ port, host });
} catch (error) {
app.log.error(error);
process.exit(1);
}
}
if (require.main === module) {
start();
}
module.exports = {
buildServer
};