feat(frontend): setup

This commit is contained in:
Julian Tölle 2020-01-26 19:07:15 +01:00
parent db62d5d908
commit f14eda16ac
33 changed files with 15076 additions and 22 deletions

View file

@ -1,8 +1,15 @@
import { NestFactory } from "@nestjs/core";
import { NestExpressApplication } from "@nestjs/platform-express";
import { join } from "path";
import { AppModule } from "./app.module";
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.useStaticAssets(join(__dirname, "frontend", "public"));
app.setBaseViewsDir(join(__dirname, "frontend", "views"));
app.setViewEngine("mustache");
await app.listen(3000);
}
bootstrap();