Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[이승환] Good-Night-Hackathon-Backend 제출 #5

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DB_HOST=localhost,
DB_PORT=3307
DB_USER=root,
DB_PASSWORD=1234,
DB_NAME=hackerton,
3 changes: 3 additions & 0 deletions dist/ormconfig.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { TypeOrmModuleOptions } from "@nestjs/typeorm";
declare function ormConfig(): TypeOrmModuleOptions;
export { ormConfig };
29 changes: 29 additions & 0 deletions dist/ormconfig.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/ormconfig.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dist/src/app.controller.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { AppService } from './app.service';
export declare class AppController {
private readonly appService;
constructor(appService: AppService);
getHello(): string;
}
34 changes: 34 additions & 0 deletions dist/src/app.controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/app.controller.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/src/app.module.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare class AppModule {
}
33 changes: 33 additions & 0 deletions dist/src/app.module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/app.module.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/src/app.service.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export declare class AppService {
getHello(): string;
}
20 changes: 20 additions & 0 deletions dist/src/app.service.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/app.service.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/main.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
22 changes: 22 additions & 0 deletions dist/src/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/src/movies/dto/create-movie.dto.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare class CreateMovieDto {
}
7 changes: 7 additions & 0 deletions dist/src/movies/dto/create-movie.dto.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/movies/dto/create-movie.dto.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/src/movies/dto/update-movie.dto.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { CreateMovieDto } from './create-movie.dto';
declare const UpdateMovieDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateMovieDto>>;
export declare class UpdateMovieDto extends UpdateMovieDto_base {
}
export {};
9 changes: 9 additions & 0 deletions dist/src/movies/dto/update-movie.dto.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/movies/dto/update-movie.dto.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions dist/src/movies/entities/movie.entity.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Review } from "src/reviews/entities/reviews.entity";
export declare class Movie {
id: number;
title: string;
genre: string;
releaseDate: Date;
endDate: Date;
isShowing: boolean;
createdAt: Date;
updatedAt: Date;
deletedAt: Date;
reviews: Review[];
}
66 changes: 66 additions & 0 deletions dist/src/movies/entities/movie.entity.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/movies/entities/movie.entity.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions dist/src/movies/movies.controller.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MoviesService } from "./movies.service";
import { Movie } from "./entities/movie.entity";
import { Review } from "src/reviews/entities/reviews.entity";
export declare class MoviesController {
private readonly moviesService;
constructor(moviesService: MoviesService);
getOneMovie(id: string): Promise<Movie>;
getTermMovie(genre: string, isShowing: boolean): Promise<Movie[]>;
createMovie(movieData: Partial<Movie>): Promise<Movie>;
updateMovie(movieData: Partial<Movie>, id: string): Promise<Movie>;
deleteMovie(id: string): Promise<Movie>;
createReview(movieId: string, rating: number, content: string): Promise<Review>;
getMovieReviews(id: number, minRating: number): Promise<Review[]>;
}
Loading