Skip to content

Commit 5829adb

Browse files
committed
remove useless service
1 parent 39de69d commit 5829adb

File tree

74 files changed

+1430
-324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1430
-324
lines changed

.circleci/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Javascript Node CircleCI 2.0 configuration file
2-
#
32
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
43
#
54
version: 2

apps/gateway-admin/src/nest.gateway.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function bootstrapNest() {
3535

3636
await app.listenAsync(
3737
parseInt(process.env.PORT, 10) ||
38-
parseInt(config.gateway?.admin?.port,10) ||
38+
parseInt(config.gateway?.admin?.port, 10) ||
3939
4000,
4040
);
4141
}

apps/gateway-admin/src/simple.gateway.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ async function bootstrapSimple() {
1515

1616
const gateway = new ApolloGateway({
1717
serviceList: [
18-
{ name: 'auth', url: 'http://localhost:9900/graphql' },
19-
{ name: 'user', url: 'http://localhost:9000/graphql' },
20-
{ name: 'project', url: 'http://localhost:9100/graphql' },
21-
{ name: 'tenant', url: 'http://localhost:9200/graphql' },
18+
{ name: 'auth', url: process.env.AUTH_ENDPOINT || 'http://localhost:9900/graphql' },
19+
{ name: 'user', url: process.env.USER_ENDPOINT || 'http://localhost:9000/graphql' },
20+
{ name: 'project', url: process.env.PROJECT_ENDPOINT || 'http://localhost:9100/graphql' },
21+
{ name: 'tenant', url: process.env.TENANT_ENDPOINT || 'http://localhost:9200/graphql' },
22+
{ name: 'payment', url: process.env.PAYMENT_ENDPOINT || 'http://localhost:9500/graphql' },
2223
// more services
2324
],
2425
buildService({ url }) {
@@ -64,7 +65,7 @@ async function bootstrapSimple() {
6465
authSetup(app, false);
6566

6667
server.applyMiddleware({ app });
67-
await app.listen({ port: parseInt(process.env.PORT,10) || parseInt(config.gateway?.admin?.port, 10) || 4000 });
68+
await app.listen({ port: parseInt(process.env.PORT, 10) || parseInt(config.gateway?.admin?.port, 10) || 4000 });
6869
}
6970

7071
bootstrapSimple();

apps/gateway-client/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function bootstrap() {
3737

3838
await app.listenAsync(
3939
parseInt(process.env.PORT, 10) ||
40-
parseInt(config.gateway?.client?.port,10) ||
40+
parseInt(config.gateway?.client?.port, 10) ||
4141
5000,
4242
);
4343
}

apps/service-auth/src/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ async function bootstrap() {
2525

2626
await app.listenAsync(
2727
parseInt(process.env.PORT, 10) ||
28-
parseInt(config.services?.auth?.port,10) ||
28+
parseInt(config.services?.auth?.port, 10) ||
2929
9900,
3030
);
3131

32-
await setupGrpc(app, 'role', 'role.proto',config.services?.auth?.grpcPort || 7900);
32+
await setupGrpc(app, 'role', 'role.proto', config.services?.auth?.grpcPort || 7900);
3333
}
3434
bootstrap();

apps/service-billing/src/app.controller.spec.ts

-22
This file was deleted.

apps/service-billing/src/app.controller.ts

-12
This file was deleted.

apps/service-billing/src/app.module.ts

-11
This file was deleted.

apps/service-billing/src/app.service.ts

-8
This file was deleted.

apps/service-billing/src/main.ts

-33
This file was deleted.

apps/service-billing/src/subscription/subscription.module.ts

-7
This file was deleted.

apps/service-billing/src/subscription/subscription.resolver.spec.ts

-18
This file was deleted.

apps/service-billing/src/subscription/subscription.resolver.ts

-4
This file was deleted.

apps/service-billing/test/app.e2e-spec.ts

-23
This file was deleted.

apps/service-billing/test/jest-e2e.json

-9
This file was deleted.

apps/service-billing/tsconfig.app.json

-9
This file was deleted.

apps/service-billing/tslint.json

-3
This file was deleted.

apps/service-notification/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function bootstrap() {
2424

2525
await app.listenAsync(
2626
parseInt(process.env.PORT, 10) ||
27-
parseInt(config.services?.notification?.port,10) ||
27+
parseInt(config.services?.notification?.port, 10) ||
2828
9400,
2929
);
3030
}

libs/core/src/casbin-role/roles.helper.ts

-2
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const EVENTS_CONSTANTS = {
2+
DATABASE_CREATED: 'databaseCreated',
3+
DATABASE_DROPPED: 'databaseDropped',
4+
CONNECTED: 'connected',
5+
DISCONNECTED: 'disconnected',
6+
READY: 'ready',
7+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './events.constants';
2+
export * from './shared.constants';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export const DATABASE_CONNECTIONS_CONTAINER = 'DatabaseConnectionsContainer';
2+
export const DATABASE_CONTAINER_NAME = 'DatabaseContainerName';
3+
export const DATABASE_CONNECTION_NAME = 'DatabaseConnectionName';
4+
export const DATABASE_MODULE_OPTIONS = 'DatabaseModuleOptions';
5+
6+
export const DEFAULT_DATABASE_CONTAINER_NAME = 'DefaultDatabase';
7+
export const CURRENT_TENANT_CONTAINER = 'CurrentTenant';
8+
export const DEFAULT_DATABASE_CONNECTION_NAME = 'DefaultDatabase';

libs/nest-multi-tenant/src/database/arango/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)