This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Controller() | |
export class AppController { | |
constructor(private readonly appService: AppService) {} | |
@Post() | |
getHello(@Body() album: Feature): string { | |
console.log(album); | |
return this.appService.getHello(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@nestjs/common'; | |
import { AuthGuard } from '@nestjs/passport'; | |
@Injectable() | |
export class AccessTokenGuard extends AuthGuard('jwt') {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:18 | |
WORKDIR /usr/app | |
RUN npm install nodemon bcrypt -g | |
COPY package*.json ./ | |
RUN npm install --force | |
COPY . ./ | |
EXPOSE 3000 | |
CMD [ "npm", "run", "start-dev" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongo-express | Welcome to mongo-express | |
mongo-express | ------------------------ | |
mongo-express | | |
mongo-express | | |
mongo-express | | |
mongo-express | (node:7) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. | |
mongo-express | Could not connect to database using connectionString: mongodb://root:example@mongodb:27017/" | |
mongo-express | (node:7) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [mongodb:27017] on first connect [Error: connect ECONNREFUSED 172.19.0.2:27017 | |
mongo-express | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) { | |
mongo-express | name: 'MongoNetworkError' |