Skip to content

Commit

Permalink
Merge pull request #10 from fga-eps-mds/refact/frontenRemoval
Browse files Browse the repository at this point in the history
Removing frontend
  • Loading branch information
MarcosNBJ committed May 3, 2022
2 parents bc2eb49 + 351d40f commit 9461cf2
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 433 deletions.
32 changes: 0 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"@types/nodemailer": "^6.4.4",
"amqp-connection-manager": "^3.6.0",
"amqplib": "^0.8.0",
"ejs": "^3.1.6",
"firebase-admin": "^9.11.1",
"jest-sonar-reporter": "^2.0.0",
"mongodb": "^3.6.11",
Expand Down
Binary file removed public/img/logo.png
Binary file not shown.
17 changes: 0 additions & 17 deletions public/scripts/index.js

This file was deleted.

236 changes: 0 additions & 236 deletions public/styles/index.css

This file was deleted.

32 changes: 13 additions & 19 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { Transport } from '@nestjs/microservices';
import { Transport, MicroserviceOptions } from '@nestjs/microservices';
import { ConfigService } from './config/configuration';
import { join } from 'path';
import { NestExpressApplication } from '@nestjs/platform-express';

type MicrosserviceConfig = {
queueName: string;
Expand All @@ -15,24 +13,20 @@ async function bootstrap() {
'microsservice',
);

const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.connectMicroservice({
transport: Transport.RMQ,
options: {
urls: [microsserviceOptions.host],
queue: microsserviceOptions.queueName,
queueOptions: {
durable: true,
const app = await NestFactory.createMicroservice<MicroserviceOptions>(
AppModule,
{
transport: Transport.RMQ,
options: {
urls: [microsserviceOptions.host],
queue: microsserviceOptions.queueName,
queueOptions: {
durable: true,
},
},
},
});

app.useStaticAssets(join(__dirname, '..', 'public'));
app.setBaseViewsDir(join(__dirname, '..', 'src/views'));
app.setViewEngine('ejs');

await app.startAllMicroservices();
);

await app.listen(9880);
await app.listen();
}
bootstrap();
Loading

0 comments on commit 9461cf2

Please sign in to comment.