File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ echo -e "${YELLOW}\n9) We added the .prettierrc file with its configuration${NC}
117
117
touch ./.prettierrc
118
118
cat << EOF > .prettierrc
119
119
{
120
- "singleQuote": false ,
120
+ "singleQuote": true ,
121
121
"trailingComma": "all",
122
122
"semi": true,
123
123
"tabWidth": 2,
@@ -154,18 +154,18 @@ EOF
154
154
echo -e " ${YELLOW} \n11) We configured data-source.ts ${NC} "
155
155
156
156
cat << EOF > src/config/data-source.ts
157
- import { DataSource } from " typeorm" ;
157
+ import { DataSource } from ' typeorm' ;
158
158
159
159
export const AppDataSource = new DataSource({
160
- type: " postgres" ,
161
- host: " localhost" ,
160
+ type: ' postgres' ,
161
+ host: ' localhost' ,
162
162
port: 5432,
163
- username: " postgres" ,
164
- password: " postgres" ,
165
- database: " new_database" , //This database must be created before initialize the typeorm
166
- // dropSchema: true , //Erase database content when the server starts
163
+ username: ' postgres' ,
164
+ password: ' postgres' ,
165
+ database: ' new_database' , //This database must be created before initialize the typeorm
166
+ dropSchema: false , //Erase database content when the server starts
167
167
synchronize: true,
168
- // logging: true , // Don't log queries in the console
168
+ logging: false , // Don't log queries in the console
169
169
entities: [],
170
170
subscribers: [],
171
171
migrations: [],
You can’t perform that action at this time.
0 commit comments