Created the server.ts

This commit is contained in:
Mathias Wagner 2023-01-14 17:16:53 +01:00
parent efec141a26
commit 5dfc686f43
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

8
src/server.ts Normal file
View File

@ -0,0 +1,8 @@
import express, {Application} from 'express';
const app: Application = express();
const port: number = parseInt(process.env.SERVER_PORT || '8025');
const isDevelopment: boolean = process.env.NODE_ENV !== 'production';
app.listen(port, () => console.log(`LicenseAPI ${isDevelopment ? "development" : "production"} server started under port ${port}`));