Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Added basic module structure

Yevhenii Kulisidi9d06fb3ff34d
diff --git a/src/app.module.ts b/src/app.module.ts
index ea8a6ff19..580ae9748 100644
--- a/src/app.module.ts
+++ b/src/app.module.ts
@@ -19,6 +19,7 @@ import { MarketplaceModule } from './marketplace/marketplace.module'
import { AlertModule } from './alert/alert.module'
import { I18nModule } from 'nestjs-i18n'
import { getI18nConfig } from './configs'
+import { AuthModule } from './auth/auth.module'
const modules = [
ConfigModule.forRoot({ envFilePath: '.env', isGlobal: true }),
diff --git a/src/auth/auth.controller.spec.ts b/src/auth/auth.controller.spec.ts
new file mode 100644
index 000000000..6f8bc5e16
--- /dev/null
+++ b/src/auth/auth.controller.spec.ts
@@ -0,0 +1,18 @@
+import { Test, TestingModule } from '@nestjs/testing'
+import { AuthController } from './auth.controller'
+
+describe('AuthController', () => {
+ let controller: AuthController
+
+ beforeEach(async () => {
+ const module: TestingModule = await Test.createTestingModule({
+ controllers: [AuthController],
+ }).compile()
+
+ controller = module.get<AuthController>(AuthController)
+ })
+
+ it('should be defined', () => {
+ expect(controller).toBeDefined()
+ })
+})
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts
new file mode 100644
index 000000000..00ea8b861
--- /dev/null
+++ b/src/auth/auth.controller.ts
@@ -0,0 +1,6 @@
+import { Controller } from '@nestjs/common'
+import { ApiTags } from '@nestjs/swagger'
+
+@ApiTags('Auth')
+@Controller('auth')
+export class AuthController {}
diff --git a/src/auth/auth.module.ts b/src/auth/auth.module.ts
new file mode 100644
index 000000000..10476b739
--- /dev/null
+++ b/src/auth/auth.module.ts
@@ -0,0 +1,9 @@
+import { Module } from '@nestjs/common'
+import { AuthController } from './auth.controller'
+import { AuthService } from './auth.service'
+
+@Module({
+ controllers: [AuthController],
+ providers: [AuthService],
+})
+export class AuthModule {}
diff --git a/src/auth/auth.service.spec.ts b/src/auth/auth.service.spec.ts
new file mode 100644
index 000000000..52d97a6d2
--- /dev/null
+++ b/src/auth/auth.service.spec.ts
@@ -0,0 +1,18 @@
+import { Test, TestingModule } from '@nestjs/testing'
+import { AuthService } from './auth.service'
+
+describe('AuthService', () => {
+ let service: AuthService
+
+ beforeEach(async () => {
+ const module: TestingModule = await Test.createTestingModule({
+ providers: [AuthService],
+ }).compile()
+
+ service = module.get<AuthService>(AuthService)
+ })
+
+ it('should be defined', () => {
+ expect(service).toBeDefined()
+ })
+})
diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts
new file mode 100644
index 000000000..7f4cbbf63
--- /dev/null
+++ b/src/auth/auth.service.ts
@@ -0,0 +1,4 @@
+import { Injectable } from '@nestjs/common'
+
+@Injectable()
+export class AuthService {}