feat: complete TASK-WP0-01 toolchain skeleton
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import swagger from "@fastify/swagger";
|
||||
import Fastify from "fastify";
|
||||
|
||||
export function createApp() {
|
||||
const app = Fastify({ logger: false });
|
||||
|
||||
void app.register(swagger, {
|
||||
openapi: {
|
||||
info: {
|
||||
title: "Dada P0-A",
|
||||
version: "0.0.0",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
return app;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { createApp } from "./app.js";
|
||||
|
||||
const app = createApp();
|
||||
|
||||
await app.listen({
|
||||
host: "127.0.0.1",
|
||||
port: 43121,
|
||||
});
|
||||
Reference in New Issue
Block a user