Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ArslanKamchybekov committed Sep 11, 2024
1 parent 9ed229c commit b1bd334
Show file tree
Hide file tree
Showing 37 changed files with 436 additions and 346 deletions.
6 changes: 3 additions & 3 deletions backend/src/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

@Controller('app')
@Controller('api')
export class AppController {
constructor(private readonly appService: AppService) {}

@Get('hello')
getHello(): string {
@Get()
get(): string {
return this.appService.getHello();
}
}
10 changes: 8 additions & 2 deletions backend/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthController } from './auth/auth.controller';
import { AuthService } from './auth/auth.service';
import { InsuranceController } from './insurance/insurance.controller';
import { InsuranceService } from './insurance/insurance.service';
import { UserController } from './user/user.controller';
import { UserService } from './user/user.service';

@Module({
imports: [],
controllers: [AppController],
providers: [AppService],
controllers: [AppController, AuthController, InsuranceController, UserController],
providers: [AppService, AuthService, InsuranceService, UserService],
})
export class AppModule {}
2 changes: 1 addition & 1 deletion backend/src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
getHello(): string {
return 'Hello World!';
return 'API is running!';
}
}
18 changes: 18 additions & 0 deletions backend/src/auth/auth.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -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();
});
});
12 changes: 12 additions & 0 deletions backend/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Controller, Get } from '@nestjs/common';
import { AuthService } from './auth.service';

@Controller('auth')
export class AuthController {
constructor(private readonly authService: AuthService) {}

@Get()
get(): string {
return "Auth is running!";
}
}
10 changes: 10 additions & 0 deletions backend/src/auth/auth.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Module } from '@nestjs/common';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';

@Module({
imports: [],
controllers: [AuthController],
providers: [AuthService],
})
export class AuthModule {}
6 changes: 6 additions & 0 deletions backend/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class AuthService {

}
Empty file.
20 changes: 20 additions & 0 deletions backend/src/insurance/insurance.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Test, TestingModule } from '@nestjs/testing';
import { InsuranceController } from './insurance.controller';
import { InsuranceService } from './insurance.service';

describe('InsuranceController', () => {
let controller: InsuranceController;

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

controller = module.get<InsuranceController>(InsuranceController);
});

it('should be defined', () => {
expect(controller).toBeDefined();
});
});
12 changes: 12 additions & 0 deletions backend/src/insurance/insurance.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Controller, Get } from '@nestjs/common';
import { InsuranceService } from './insurance.service';

@Controller('insurance')
export class InsuranceController {
constructor(private readonly insuranceService: InsuranceService) {}

@Get()
get(): string {
return "Insurance is running!";
}
}
10 changes: 10 additions & 0 deletions backend/src/insurance/insurance.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Module } from '@nestjs/common';
import { InsuranceController } from './insurance.controller';
import { InsuranceService } from './insurance.service';

@Module({
imports: [],
controllers: [InsuranceController],
providers: [InsuranceService],
})
export class AppModule {}
Empty file.
6 changes: 6 additions & 0 deletions backend/src/insurance/insurance.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class InsuranceService {

}
Empty file.
20 changes: 20 additions & 0 deletions backend/src/user/user.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Test, TestingModule } from '@nestjs/testing';
import { InsuranceController } from './user.controller';
import { InsuranceService } from './user.service';

describe('InsuranceController', () => {
let controller: InsuranceController;

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

controller = module.get<InsuranceController>(InsuranceController);
});

it('should be defined', () => {
expect(controller).toBeDefined();
});
});
12 changes: 12 additions & 0 deletions backend/src/user/user.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Controller, Get } from '@nestjs/common';
import { UserService } from './user.service';

@Controller('user')
export class UserController {
constructor(private readonly userService: UserService) {}

@Get()
get(): string {
return "User is running!";
}
}
10 changes: 10 additions & 0 deletions backend/src/user/user.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';

@Module({
imports: [],
controllers: [UserController],
providers: [UserService],
})
export class UserModule {}
Empty file added backend/src/user/user.schema.ts
Empty file.
6 changes: 6 additions & 0 deletions backend/src/user/user.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class UserService {

}
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bun dev

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

Expand Down
42 changes: 0 additions & 42 deletions frontend/app/globals.css

This file was deleted.

28 changes: 0 additions & 28 deletions frontend/app/layout.js

This file was deleted.

95 changes: 0 additions & 95 deletions frontend/app/page.js

This file was deleted.

Loading

0 comments on commit b1bd334

Please sign in to comment.