Compare commits

..

No commits in common. "f7d7f5e75f9693f68ed0cf387eb402c185bc1e1c" and "e5562efe3545012cfcddff7707891fff3f05ff1d" have entirely different histories.

4 changed files with 15 additions and 6 deletions

View File

@ -8,5 +8,5 @@ export default {
username: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
entities: ["src/models/*.ts"]
entities: ["src/models/*.ts"]
};

View File

@ -50,13 +50,22 @@
"@types/node": "^14.14.9",
"@types/swagger-ui-express": "^4.1.2",
"dotenv-safe": "^8.2.0",
"husky": "^4.3.0",
"nodemon": "^2.0.6",
"prettier": "^2.2.0",
"pretty-quick": "^3.1.0",
"sqlite3": "^5.0.0",
"ts-node": "^9.0.0",
"typescript": "^4.1.2"
},
"scripts": {
"dev": "nodemon src/app.ts",
"build": "tsc"
"build": "tsc",
"format": "pretty-quick"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}
}

View File

@ -1,6 +1,6 @@
import { createConnection } from "typeorm";
import {createConnection} from "typeorm";
export default async () => {
export default async ()=> {
const connection = await createConnection();
connection.synchronize();
return connection;

View File

@ -1,4 +1,4 @@
import { Application } from "express";
import {Application} from "express";
import bodyParser from 'body-parser';
import cors from 'cors';