This repository has been archived on 2023-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
auth/lib/server.ts
mifi 5fba4c6643
Some checks failed
continuous-integration/drone/push Build is failing
Linty fresh and pretty
2023-05-02 20:54:14 -04:00

15 lines
351 B
TypeScript

import dotenv from 'dotenv';
import app from './app';
import { connection } from './database/database.connection';
import { PORT as DEFAULT_PORT } from './constants/defaults';
dotenv.config();
const PORT: number = Number(process.env.PORT) || DEFAULT_PORT;
connection.then(
() => app.listen(PORT),
(err) => console.error('ERROR!', err),
);