File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
template-express-ts-typeorm Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3030 "license" : " ISC" ,
3131 "dependencies" : {
3232 "express" : " ^4.17.1" ,
33+ "pg" : " ^8.6.0" ,
3334 "reflect-metadata" : " ^0.1.13" ,
3435 "typeorm" : " ^0.2.32"
3536 },
Original file line number Diff line number Diff line change 11import { createConnection } from 'typeorm' ;
22
3- import { DB_URI } from '@/config/env'
3+ import { DB_URI } from '@/config/env' ;
44
55
66export default createConnection ( {
Original file line number Diff line number Diff line change 1- import express from " express" ;
1+ import express from ' express' ;
22
3- import { globalRouter } from " @/api/routes" ;
4- import db from " @/config/db" ;
3+ import { globalRouter } from ' @/api/routes' ;
4+ import db from ' @/config/db' ;
55
66const PORT = 8080 ;
77const app = express ( ) ;
@@ -11,7 +11,7 @@ app.use(express.urlencoded({ extended: true }));
1111
1212/** DB Connection */
1313db
14- . then ( ( _ ) => console . log ( " DB Connected" ) )
14+ . then ( ( _ ) => console . log ( ' DB Connected' ) )
1515 . catch ( ( err ) => console . error ( err ) ) ;
1616
1717/** Global Routing */
You can’t perform that action at this time.
0 commit comments