Skip to content

Commit

Permalink
feat(tools-automation-api): initialize notion service
Browse files Browse the repository at this point in the history
  • Loading branch information
dthib committed Dec 18, 2024
1 parent 29e5585 commit 442a6bc
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 14 deletions.
4 changes: 2 additions & 2 deletions apps/tools-automation-api/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ docker:
deploy: ## Déploie le backend dans une app Koyeb existante
ARG --required KOYEB_API_KEY
ARG --required DEPLOYMENT_TIMESTAMP
ARG SERVICE_NAME=$ENV_NAME-tools-automation-api
ARG SERVICE_NAME=$ENV_NAME-tools-autom-api ## Max 23 characters
FROM ../../+koyeb --KOYEB_API_KEY=$KOYEB_API_KEY

RUN ./koyeb services update $SERVICE_NAME/tools-automation-api \
--debug \
--docker $BACKEND_IMG_NAME \
--docker $TOOLS_AUTOMATION_API_IMG_NAME \
--env ENV_NAME=$ENV_NAME \
--env DEPLOYMENT_TIMESTAMP=$DEPLOYMENT_TIMESTAMP

Expand Down
12 changes: 12 additions & 0 deletions apps/tools-automation-api/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Module } from '@nestjs/common';

import { AppController } from './app/app.controller';
import { AppService } from './app/app.service';
import { NotionModule } from './notion/notion.module';

@Module({
imports: [NotionModule],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
11 changes: 0 additions & 11 deletions apps/tools-automation-api/src/app/app.module.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/tools-automation-api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { Logger } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';

import { AppModule } from './app/app.module';
import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Test, TestingModule } from '@nestjs/testing';
import { NotionBugCreatorService } from './notion-bug-creator.service';

describe('NotionBugCreatorService', () => {
let service: NotionBugCreatorService;

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [NotionBugCreatorService],
}).compile();

service = module.get<NotionBugCreatorService>(NotionBugCreatorService);
});

it('should be defined', () => {
expect(service).toBeDefined();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class NotionBugCreatorService {}
7 changes: 7 additions & 0 deletions apps/tools-automation-api/src/notion/notion.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { NotionBugCreatorService } from './notion-bug-creator/notion-bug-creator.service';

@Module({
providers: [NotionBugCreatorService],
})
export class NotionModule {}

0 comments on commit 442a6bc

Please sign in to comment.