more work on testing

This commit is contained in:
Mikayla Dobson
2022-12-17 12:22:03 -06:00
parent a38bc2793f
commit 27e6b4aa1f
14 changed files with 96 additions and 62 deletions

View File

@@ -1,23 +1,21 @@
import express from 'express';
import path from 'path';
import cors from 'cors';
import dotenv from 'dotenv';
dotenv.config();
import { loaders } from './loaders';
dotenv.config();
const port = 8080;
const app = express();
app.use(cors());
export const appRoot = path.resolve(__dirname);
export default async function main() {
const app = express();
async function main() {
await loaders(app);
app.listen(port, () => {
console.log('listening on port ' + port);
})
};
export default app;
main();