Merge branch 'main' of git.odit.services:lfk/backend into main
This commit is contained in:
commit
56ee91e762
@ -8,5 +8,5 @@ export default {
|
|||||||
username: process.env.DB_USER,
|
username: process.env.DB_USER,
|
||||||
password: process.env.DB_PASSWORD,
|
password: process.env.DB_PASSWORD,
|
||||||
database: process.env.DB_NAME,
|
database: process.env.DB_NAME,
|
||||||
entities: ["src/models/*.ts"]
|
entities: ["src/models/*.ts"]
|
||||||
};
|
};
|
||||||
|
13
package.json
13
package.json
@ -50,22 +50,13 @@
|
|||||||
"@types/node": "^14.14.9",
|
"@types/node": "^14.14.9",
|
||||||
"@types/swagger-ui-express": "^4.1.2",
|
"@types/swagger-ui-express": "^4.1.2",
|
||||||
"dotenv-safe": "^8.2.0",
|
"dotenv-safe": "^8.2.0",
|
||||||
"husky": "^4.3.0",
|
|
||||||
"nodemon": "^2.0.6",
|
"nodemon": "^2.0.6",
|
||||||
"prettier": "^2.2.0",
|
|
||||||
"pretty-quick": "^3.1.0",
|
|
||||||
"sqlite3": "^5.0.0",
|
"sqlite3": "^5.0.0",
|
||||||
"ts-node": "^9.0.0",
|
"ts-node": "^9.0.0",
|
||||||
"typescript": "^4.1.2"
|
"typescript": "^4.1.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nodemon src/app.ts",
|
"dev": "nodemon src/app.ts",
|
||||||
"build": "tsc",
|
"build": "tsc"
|
||||||
"format": "pretty-quick"
|
|
||||||
},
|
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "pretty-quick --staged"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
import {createConnection} from "typeorm";
|
import { createConnection } from "typeorm";
|
||||||
|
|
||||||
export default async ()=> {
|
export default async () => {
|
||||||
const connection = await createConnection();
|
const connection = await createConnection();
|
||||||
connection.synchronize();
|
connection.synchronize();
|
||||||
return connection;
|
return connection;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {Application} from "express";
|
import { Application } from "express";
|
||||||
import bodyParser from 'body-parser';
|
import bodyParser from 'body-parser';
|
||||||
import cors from 'cors';
|
import cors from 'cors';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user