24 lines
578 B
TypeScript
24 lines
578 B
TypeScript
|
|
import { NestFactory } from '@nestjs/core';
|
||
|
|
import { AppModule } from './app.module';
|
||
|
|
import cookieParser from 'cookie-parser';
|
||
|
|
import { ConfigService } from '@nestjs/config';
|
||
|
|
|
||
|
|
async function bootstrap() {
|
||
|
|
const app = await NestFactory.create(AppModule);
|
||
|
|
const configService = app.get(ConfigService);
|
||
|
|
app.use(cookieParser(configService.get<string>('COOKIE_SECRET')));
|
||
|
|
await app.listen(configService.get<number>('PORT') ?? 1323);
|
||
|
|
}
|
||
|
|
bootstrap();
|
||
|
|
|
||
|
|
// Module
|
||
|
|
// APP
|
||
|
|
// - Users
|
||
|
|
// -- Auth
|
||
|
|
// -- Profiles
|
||
|
|
// -- Register
|
||
|
|
// - Logs
|
||
|
|
// - RekamMedis
|
||
|
|
// - Obat
|
||
|
|
// - TindakanDokter
|