File tree Expand file tree Collapse file tree 5 files changed +16
-4
lines changed
apps/users-microservice/src Expand file tree Collapse file tree 5 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,12 @@ REDIS_PORT=6379
22
22
# NATS
23
23
NATS_HOST = localhost
24
24
NATS_PORT = 4222
25
+
26
+ # DB
27
+ POSTGRES_HOST = localhost
28
+ POSTGRES_PORT = 5432
29
+ POSTGRES_USER = admin
30
+ POSTGRES_PASSWORD = admin123
31
+ # DB_USER
32
+ POSTGRES_MULTIPLE_DATABASES = users_db,tasks_db
33
+ POSTGRES_USER_DATABASE = users_db
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import {
7
7
} from "@app/api-core" ;
8
8
9
9
import { AppController } from "./app.controller" ;
10
- import { users } from "./schema/users " ;
10
+ import * as schema from "./schema" ;
11
11
12
12
@Module ( {
13
13
imports : [
14
14
APICoreModule ,
15
15
DatabaseModule . forRootAsync ( {
16
16
dbName : "USER" ,
17
17
connectionName : DATABASE_CONNECTION . USERS_DATABASE_CONNECTION ,
18
- schema : { users } ,
18
+ schema,
19
19
} ) ,
20
20
] ,
21
21
controllers : [ AppController ] ,
Original file line number Diff line number Diff line change
1
+ export * from "./users" ;
Original file line number Diff line number Diff line change 6
6
"clean" : " git clean -xdf node_modules" ,
7
7
"clean:workspaces" : " turbo run clean" ,
8
8
"dev" : " turbo watch dev --continue" ,
9
- "dev:api" : " turbo watch dev -F @app/api-gateway..." ,
9
+ "dev:api" : " turbo watch dev --filter=@app/api-gateway --filter=@app/users-microservice" ,
10
+ "dev:api-gateway" : " turbo watch dev -F @app/api-gateway..." ,
11
+ "dev:users-microservice" : " turbo watch dev -F @app/users-microservice..." ,
10
12
"dev:webapp" : " turbo watch dev -F @app/webapp..." ,
11
13
"format" : " turbo run format --continue -- --cache --cache-location .cache/.prettiercache" ,
12
14
"format:fix" : " turbo run format --continue -- --write --cache --cache-location .cache/.prettiercache" ,
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"build" : " pnpm with-env tsc" ,
9
9
"clean" : " git clean -xdf .cache .turbo dist node_modules" ,
10
- "dev" : " pnpm with-end tsc" ,
10
+ "dev" : " pnpm with-env tsc" ,
11
11
"format" : " prettier --check . --ignore-path ../../.gitignore" ,
12
12
"lint" : " eslint ./src" ,
13
13
"typecheck" : " tsc --noEmit --emitDeclarationOnly false" ,
You can’t perform that action at this time.
0 commit comments