본문으로 건너뛰기

Application

express.js 기반의 웹서버를 만드는 클래스입니다.

아래 예시와 같이 src/index.ts 파일에서 선언하여 쓰는것을 권장합니다.

Example

src/index.ts
import { Application } from "@asapjs/core";

import config from "./config";

new Application(
// 웹서버가 실행되는 디렉터리 위치
__dirname,
// 웹서버 구성 내용
config
).run();

Config