-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/version
- Loading branch information
Showing
25 changed files
with
2,322 additions
and
1,842 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
FROM node:lts-slim as builder | ||
RUN npm install -g pnpm | ||
WORKDIR /app | ||
COPY package.json pnpm-lock.yaml ./ | ||
RUN pnpm install --frozen-lockfile | ||
RUN corepack pnpm install --frozen-lockfile | ||
COPY . . | ||
RUN pnpm run build:backend | ||
RUN corepack pnpm run build:backend | ||
|
||
FROM node:lts-slim | ||
RUN npm install -g pnpm | ||
WORKDIR /app | ||
COPY --from=builder /app/dist/apps/backend/ ./ | ||
ENV NODE_ENV=production | ||
RUN pnpm install # --frozen-lockfile | ||
RUN corepack pnpm install # --frozen-lockfile | ||
EXPOSE 3000 | ||
CMD node main.js |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {PushConfigDto} from '@apollusia/types'; | ||
import {NotFound} from '@mean-stream/nestx/not-found'; | ||
import {Controller, Get} from '@nestjs/common'; | ||
|
||
import {PushService} from './push.service'; | ||
|
||
@Controller('push') | ||
export class PushController { | ||
constructor( | ||
private pushService: PushService, | ||
) { | ||
} | ||
|
||
@Get('config') | ||
@NotFound() | ||
getConfig(): PushConfigDto | undefined { | ||
return this.pushService.config; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import {Module} from '@nestjs/common'; | ||
import {ConfigModule} from '@nestjs/config'; | ||
|
||
import {PushController} from './push.controller'; | ||
import {PushService} from './push.service'; | ||
|
||
@Module({ | ||
imports: [ | ||
ConfigModule, | ||
], | ||
providers: [PushService], | ||
exports: [PushService], | ||
imports: [ | ||
ConfigModule, | ||
], | ||
providers: [PushService], | ||
controllers: [PushController], | ||
exports: [PushService], | ||
}) | ||
export class PushModule { | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.