Created the server.ts
This commit is contained in:
parent
efec141a26
commit
5dfc686f43
8
src/server.ts
Normal file
8
src/server.ts
Normal 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}`));
|
Loading…
x
Reference in New Issue
Block a user