Skip to content

Commit 077e368

Browse files
committed
feat(app): configured scripts for run
1 parent eaefc8d commit 077e368

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ REDIS_PORT=6379
2222
#NATS
2323
NATS_HOST=localhost
2424
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

apps/users-microservice/src/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import {
77
} from "@app/api-core";
88

99
import { AppController } from "./app.controller";
10-
import { users } from "./schema/users";
10+
import * as schema from "./schema";
1111

1212
@Module({
1313
imports: [
1414
APICoreModule,
1515
DatabaseModule.forRootAsync({
1616
dbName: "USER",
1717
connectionName: DATABASE_CONNECTION.USERS_DATABASE_CONNECTION,
18-
schema: { users },
18+
schema,
1919
}),
2020
],
2121
controllers: [AppController],
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./users";

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"clean": "git clean -xdf node_modules",
77
"clean:workspaces": "turbo run clean",
88
"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...",
1012
"dev:webapp": "turbo watch dev -F @app/webapp...",
1113
"format": "turbo run format --continue -- --cache --cache-location .cache/.prettiercache",
1214
"format:fix": "turbo run format --continue -- --write --cache --cache-location .cache/.prettiercache",

packages/api-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "pnpm with-env tsc",
99
"clean": "git clean -xdf .cache .turbo dist node_modules",
10-
"dev": "pnpm with-end tsc",
10+
"dev": "pnpm with-env tsc",
1111
"format": "prettier --check . --ignore-path ../../.gitignore",
1212
"lint": "eslint ./src",
1313
"typecheck": "tsc --noEmit --emitDeclarationOnly false",

0 commit comments

Comments
 (0)