Initial auth library commmit
This commit is contained in:
12
lib/server.ts
Normal file
12
lib/server.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
import app from './app';
|
||||
import { connection } from './database/database.connection';
|
||||
|
||||
const PORT: number = Number(process.env.PORT) || 9000;
|
||||
|
||||
connection.then(
|
||||
() => app.listen(PORT),
|
||||
(err) => console.error('ERROR!', err),
|
||||
);
|
||||
Reference in New Issue
Block a user