-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* swagger 설정 * ✨ MongoDB 설정 MongoDB 설정입니다. * 📝 Dependency 추가 class-transformer, class-validator, uuid 추가 * ✨ 검증 파이프 추가 검증 파이프 추가 * 🎨 잡다한 코드 수정 테스트 및 의미없는 부분 수정 * ✨ Journal 추가 기능 추가 journal 시작 시 새로운 journal을 db에 추가하고 추가된 journal을 클라이언트로 응답 * test * test 제거 * ✨ Person 모듈 추가 Person 관련 module, service, controller, schema 추가 * 🧪 Person 모듈 테스트 PersonService 테스트 입니다. * ✨ Journal 아이디 추가 구현 여정 시작 시 journal id를 유저에 추가하는 기능 구현 * 🧪 사용자 데이터에 journal id 추가하는 기능 테스트 사용자 데이터에 journal id 추가하는 기능 테스트 * 🎨 의존성 추가를 위한 작업 import에 personService를 추가해서 의존성 주입 * 🐛 Import 수정 Person Model이 제대로 주입되지 않는 상황 수정 * ✨ Spot 저장 구현 spot 저장 구현 * 🧪 Spot 저장 테스트 구현 spot 저장 테스트 구현 * 🎨 Rename modules journals->journey person->user * 🎨 Rename spot module spots->spot 으로 모듈이름 변경 * ✨ Spot 생성 및 spot id 추가 spot 생성하면 해당 journey에 spot id 추가 * ✨ Object storage dependency 추가 object storaghe dependency 추가 * ♻️ Change schema 스키마 변경과 변경에 따른 DTO, 컨트롤러 수정 * 📦 Create 메서드 분리 create 메서드 내부 로직을 모듈화 * 🧪 SpotService 테스트 코드 추가 spotService 테스트 코드 추가 * ✨ swagger api 설명 추가 * ♻️ 환경변수를 통한 보안 강화 * ♻️ Storage 접근 시 환경변수 사용 --------- Co-authored-by: JUNGHOON IM <[email protected]>
- Loading branch information
Showing
16 changed files
with
348 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,22 @@ | ||
import { | ||
ArrayMaxSize, | ||
ArrayMinSize, | ||
IsArray, | ||
IsNumber, | ||
IsString, | ||
} from 'class-validator'; | ||
|
||
export class RecordSpotDTO { | ||
@IsString() | ||
readonly journeyId: string; | ||
@IsArray() | ||
@ArrayMaxSize(2, { message: 'coordinate has only 2' }) | ||
@ArrayMinSize(2, { message: 'coordinate has only 2' }) | ||
@IsNumber({}, { each: true }) | ||
readonly coordinate: number[]; | ||
|
||
@IsString() | ||
readonly timestamp: string; | ||
|
||
readonly photoData: Buffer; | ||
} |
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,18 @@ | ||
import { Test, TestingModule } from '@nestjs/testing'; | ||
import { SpotController } from './spot.controller'; | ||
|
||
describe('SpotController', () => { | ||
let controller: SpotController; | ||
|
||
beforeEach(async () => { | ||
const module: TestingModule = await Test.createTestingModule({ | ||
controllers: [SpotController], | ||
}).compile(); | ||
|
||
controller = module.get<SpotController>(SpotController); | ||
}); | ||
|
||
it('should be defined', () => { | ||
expect(controller).toBeDefined(); | ||
}); | ||
}); |
Oops, something went wrong.