chore: establish workspace and initial asset data model

This commit is contained in:
陈煜 committed 2026-10-01 15:47:36 +08:00
commit 67220e38ed
20 files changed
+2853

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import 'reflect-metadata';
import 'dotenv/config';
import {Module,Controller,Get} from '@nestjs/common';
import {NestFactory} from '@nestjs/core';
import {PrismaClient} from '@prisma/client';
@Controller('api') class HealthController {@Get('health') health(){return {status:'ok',app:'WorthPath'};}}
@Module({controllers:[HealthController]}) class AppModule {}
async function bootstrap(){ const db=new PrismaClient();await db.$connect(); const app=await NestFactory.create(AppModule);await app.listen(Number(process.env.PORT||3000),'0.0.0.0');}void bootstrap();