Implemented models and cleaned some code

This commit is contained in:
Alexis
2021-07-19 21:26:37 +02:00
parent 0048c59d56
commit 546e8a1eed
11 changed files with 475 additions and 17 deletions

View File

@@ -4,11 +4,13 @@ dotenv.config();
// Dependencies
import morgan from 'morgan';
import helmet from 'helmet';
import express from 'express'
import { AuracleApi } from './common/classes/AuracleApi'
// Database
import { AuracleDatabaseDriver } from './common/database';
const port = Number(process.env.API_PORT);
const app = new AuracleApi({
@@ -19,11 +21,10 @@ const app = new AuracleApi({
morgan('dev'),
helmet()
],
database: AuracleDatabaseDriver
});
app.listen()
process.on('SIGINT', () => app.close());
// const routes = require('./routes');