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 7f5765aaaa
All checks were successful
continuous-integration/drone/push Build is passing
Finally have prettier and linting maybe working
2023-05-02 10:54:45 -04:00

14 lines
282 B
TypeScript

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