diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..8af972cde --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +/gradlew text eol=lf +*.bat text eol=crlf +*.jar binary diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..c2065bc26 --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +HELP.md +.gradle +build/ +!gradle/wrapper/gradle-wrapper.jar +!**/src/main/**/build/ +!**/src/test/**/build/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ diff --git a/README.md b/README.md index 5fcc66b4d..dbd0d6113 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,60 @@ ## [본 과정] 이커머스 핵심 프로세스 구현 [단기 스킬업 Redis 교육 과정](https://hh-skillup.oopy.io/) 을 통해 상품 조회 및 주문 과정을 구현하며 현업에서 발생하는 문제를 Redis의 핵심 기술을 통해 해결합니다. -> Indexing, Caching을 통한 성능 개선 / 단계별 락 구현을 통한 동시성 이슈 해결 (낙관적/비관적 락, 분산락 등) + +## 프로젝트 실행방법 + +프로젝트를 받은 뒤 +> $ docker compose up -d + +위 명령어를 실행하면 schema와 data가 자동으로 생성됩니다. + +그 후 api 모듈에 ApiApplication을 실행하면 프로젝트가 정상적을 작동합니다. + +## 멀티모듈 구성 +이 프로젝트는 **레이어드 아키텍처**를 기반으로 설계되었으며, 다음과 같이 3개의 모듈로 구성되어 있습니다. + +### **API 모듈** +- **역할** + 사용자 및 외부 시스템과의 상호작용을 담당하며, HTTP 요청을 처리하고 응답을 반환하는 역할을 합니다. +- **주요 책임** + - RESTful API 제공 + - 요청 데이터 검증 및 변환 + - Application 모듈에 의존하여 비즈니스 로직 호출 +- **의존성** + - `application` 모듈 + +--- + +### **Application 모듈** +- **역할** + 비즈니스 로직을 구현하는 핵심 계층으로, 도메인 모델과 외부 인터페이스(API 모듈)를 연결합니다. +- **주요 책임** + - 비즈니스 규칙 및 유스케이스 처리 + - 트랜잭션 관리 + - Domain 모듈과의 상호작용 +- **의존성** + - `domain` 모듈 + +--- + +### **Domain 모듈** +- **역할** + 프로젝트의 핵심 엔티티와 데이터 접근 로직을 관리합니다. +- **주요 책임** + - 도메인 엔티티 정의 + - JPA 및 데이터베이스 접근 + - 도메인 규칙을 보장하는 로직 포함 +- **의존성** + - 독립적이며 다른 모듈에 의존하지 않음 + +--- + +## 테이블 설계 +- **도메인** + ![](https://velog.velcdn.com/images/kimbro97/post/060397e0-2ff7-4997-93d7-5e7c9c5da022/image.png) +- **테이블** + ![](https://velog.velcdn.com/images/kimbro97/post/f3028e77-5355-476c-86e6-98c9c01b1aca/image.png) + +Movie(영화)와 Theater(극장)은 M:N 관계이므로 MovieTheater로 일대다 다대일 관계로 설계하였습니다. +Movie(영화)와 Screening(상영)은 1:N 관계이므로 일대다 관계로 설계하였습니다. +Screening(상영)과 Seat(좌석)은 1:N 관계이므로 일대다 관계로 설계하였습니다. \ No newline at end of file diff --git a/api/build.gradle b/api/build.gradle new file mode 100644 index 000000000..c955f96f0 --- /dev/null +++ b/api/build.gradle @@ -0,0 +1,4 @@ +dependencies { + implementation project(':application') + implementation 'org.springframework.boot:spring-boot-starter-web' +} \ No newline at end of file diff --git a/api/src/main/java/com/example/ApiApplication.java b/api/src/main/java/com/example/ApiApplication.java new file mode 100644 index 000000000..d18a00992 --- /dev/null +++ b/api/src/main/java/com/example/ApiApplication.java @@ -0,0 +1,13 @@ +package com.example; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class ApiApplication { + + public static void main(String[] args) { + SpringApplication.run(ApiApplication.class, args); + } + +} \ No newline at end of file diff --git a/api/src/main/java/com/example/MovieController.java b/api/src/main/java/com/example/MovieController.java new file mode 100644 index 000000000..0bf6b176e --- /dev/null +++ b/api/src/main/java/com/example/MovieController.java @@ -0,0 +1,20 @@ +package com.example; + +import com.example.response.MovieResponse; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +@RestController +@RequiredArgsConstructor +public class MovieController { + + private final MovieService movieService; + + @GetMapping("/movies") + public List getMovies() { + return movieService.getMovies(); + } +} diff --git a/api/src/main/resources/application.yml b/api/src/main/resources/application.yml new file mode 100644 index 000000000..74efc5520 --- /dev/null +++ b/api/src/main/resources/application.yml @@ -0,0 +1,4 @@ +spring: + config: + import: + - application-domain.yml diff --git a/api/src/test/java/com/example/ApiApplicationTest.java b/api/src/test/java/com/example/ApiApplicationTest.java new file mode 100644 index 000000000..bd98c798a --- /dev/null +++ b/api/src/test/java/com/example/ApiApplicationTest.java @@ -0,0 +1,10 @@ +package com.example; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class ApiApplicationTest { + @Test + void contextLoads() {} +} \ No newline at end of file diff --git a/application/build.gradle b/application/build.gradle new file mode 100644 index 000000000..89730a504 --- /dev/null +++ b/application/build.gradle @@ -0,0 +1,3 @@ +dependencies { + implementation project(":domain") +} \ No newline at end of file diff --git a/application/src/main/java/com/example/MovieService.java b/application/src/main/java/com/example/MovieService.java new file mode 100644 index 000000000..89196aafe --- /dev/null +++ b/application/src/main/java/com/example/MovieService.java @@ -0,0 +1,21 @@ +package com.example; + +import com.example.repository.MovieRepository; +import com.example.response.MovieResponse; +import com.example.response.MoviesServiceResponse; +import lombok.RequiredArgsConstructor; +import org.springframework.data.domain.Sort; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +@RequiredArgsConstructor +public class MovieService { + + private final MovieRepository movieRepository; + + public List getMovies() { + return MoviesServiceResponse.of(movieRepository.findMovieWithScreeningAndTheater(Sort.by(Sort.Order.desc("releaseDate")))); + } +} diff --git a/application/src/main/java/com/example/response/MovieResponse.java b/application/src/main/java/com/example/response/MovieResponse.java new file mode 100644 index 000000000..2532baa2c --- /dev/null +++ b/application/src/main/java/com/example/response/MovieResponse.java @@ -0,0 +1,50 @@ +package com.example.response; + +import com.example.entity.Movie; +import com.example.entity.MovieTheater; +import com.example.entity.Screening; +import com.example.entity.Theater; +import lombok.Getter; + +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; +import java.util.Comparator; +import java.util.List; +import java.util.stream.Collectors; + +@Getter +public class MovieResponse { + private String title; + private String thumbnailUrl; + private String genre; + private String rating; + private LocalDate releaseDate; + private List theaters; + private List screenings; + + MovieResponse(Movie movie) { + this.title = movie.getTitle(); + this.thumbnailUrl = movie.getThumbnailUrl(); + this.genre = movie.getGenre().getDescription(); + this.rating = movie.getRating().getDescription(); + this.releaseDate = movie.getReleaseDate(); + this.theaters = createTheaters(movie); + this.screenings = createScreening(movie); + } + + private static List createTheaters(Movie movie) { + return movie.getMovieTheaters().stream() + .map(MovieTheater::getTheater) + .map(Theater::getName) + .collect(Collectors.toList()); + } + + private static List createScreening(Movie movie) { + return movie.getScreenings().stream() + .sorted(Comparator.comparing(Screening::getStartedAt)) + .map(screening -> screening.getStartedAt().format(DateTimeFormatter.ofPattern("HH:mm")) + + " ~ " + + screening.getEndedAt().format(DateTimeFormatter.ofPattern("HH:mm"))) + .collect(Collectors.toList()); + } +} diff --git a/application/src/main/java/com/example/response/MoviesServiceResponse.java b/application/src/main/java/com/example/response/MoviesServiceResponse.java new file mode 100644 index 000000000..e70803faf --- /dev/null +++ b/application/src/main/java/com/example/response/MoviesServiceResponse.java @@ -0,0 +1,15 @@ +package com.example.response; + +import com.example.entity.Movie; +import lombok.Getter; + +import java.util.List; + +@Getter +public class MoviesServiceResponse { + public static List of(List movies) { + return movies.stream() + .map(MovieResponse::new) + .toList(); + } +} diff --git a/application/src/main/resources/application.yml b/application/src/main/resources/application.yml new file mode 100644 index 000000000..2ab860b29 --- /dev/null +++ b/application/src/main/resources/application.yml @@ -0,0 +1,4 @@ +spring: + config: + import: + - application-domain.yml \ No newline at end of file diff --git a/application/src/test/java/com/example/ApplicationTest.java b/application/src/test/java/com/example/ApplicationTest.java new file mode 100644 index 000000000..350af452a --- /dev/null +++ b/application/src/test/java/com/example/ApplicationTest.java @@ -0,0 +1,11 @@ +package com.example; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +public class ApplicationTest { + + @Test + void contextLoad() {} +} diff --git a/build.gradle b/build.gradle new file mode 100644 index 000000000..e2f41cf73 --- /dev/null +++ b/build.gradle @@ -0,0 +1,45 @@ +plugins { + id 'java' + id 'org.springframework.boot' version '3.4.1' + id 'io.spring.dependency-management' version '1.1.7' +} + +bootJar.enabled = false + +subprojects { + apply plugin: 'java' + apply plugin: 'java-library' + apply plugin: 'org.springframework.boot' + apply plugin: 'io.spring.dependency-management' + + group = 'com.example' + version = '0.0.1-SNAPSHOT' + + repositories { + mavenCentral() + } + + java { + toolchain { + languageVersion = JavaLanguageVersion.of(21) + } + } + + configurations { + compileOnly { + extendsFrom annotationProcessor + } + } + + dependencies { + implementation 'org.springframework.boot:spring-boot-starter' + compileOnly 'org.projectlombok:lombok' + annotationProcessor 'org.projectlombok:lombok' + testImplementation 'org.springframework.boot:spring-boot-starter-test' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' + } + + tasks.named('test') { + useJUnitPlatform() + } +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..383790b6e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +services: + my-db: + container_name: theater_mysql + image: mysql + environment: + MYSQL_ROOT_PASSWORD: 1234 + MYSQL_DATABASE: theater + TZ: Asia/Seoul + CHARACTER_SET_SERVER: utf8mb4 + ports: + - 3306:3306 + volumes: + - ./init:/docker-entrypoint-initdb.d/ + restart: always \ No newline at end of file diff --git a/domain/build.gradle b/domain/build.gradle new file mode 100644 index 000000000..2a449fe50 --- /dev/null +++ b/domain/build.gradle @@ -0,0 +1,5 @@ +dependencies { + api 'org.springframework.boot:spring-boot-starter-data-jpa' + runtimeOnly 'com.mysql:mysql-connector-j' + runtimeOnly 'com.h2database:h2' +} \ No newline at end of file diff --git a/domain/src/main/java/com/example/entity/BaseEntity.java b/domain/src/main/java/com/example/entity/BaseEntity.java new file mode 100644 index 000000000..f2197e396 --- /dev/null +++ b/domain/src/main/java/com/example/entity/BaseEntity.java @@ -0,0 +1,20 @@ +package com.example.entity; + +import jakarta.persistence.EntityListeners; +import jakarta.persistence.MappedSuperclass; +import org.springframework.data.annotation.CreatedDate; +import org.springframework.data.annotation.LastModifiedDate; +import org.springframework.data.jpa.domain.support.AuditingEntityListener; + +import java.time.LocalDateTime; + +@MappedSuperclass +@EntityListeners(AuditingEntityListener.class) +public abstract class BaseEntity { + + @CreatedDate + private LocalDateTime createdAt; + + @LastModifiedDate + private LocalDateTime updatedAt; +} diff --git a/domain/src/main/java/com/example/entity/Genre.java b/domain/src/main/java/com/example/entity/Genre.java new file mode 100644 index 000000000..850b8cc1e --- /dev/null +++ b/domain/src/main/java/com/example/entity/Genre.java @@ -0,0 +1,15 @@ +package com.example.entity; + +import lombok.Getter; +import lombok.RequiredArgsConstructor; + +@Getter +@RequiredArgsConstructor +public enum Genre { + ACTION("액션"), + SF("SF"), + ROMANCE("로멘스"), + HORROR("호로"); + + private final String description; +} diff --git a/domain/src/main/java/com/example/entity/Movie.java b/domain/src/main/java/com/example/entity/Movie.java new file mode 100644 index 000000000..1303edba0 --- /dev/null +++ b/domain/src/main/java/com/example/entity/Movie.java @@ -0,0 +1,49 @@ +package com.example.entity; + +import jakarta.persistence.*; +import lombok.AccessLevel; +import lombok.Getter; +import lombok.NoArgsConstructor; + +import java.time.LocalDate; +import java.util.HashSet; +import java.util.Set; + +import static jakarta.persistence.GenerationType.*; + +@Entity +@Getter +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class Movie extends BaseEntity { + + @Id + @GeneratedValue(strategy = IDENTITY) + @Column(columnDefinition = "INT UNSIGNED") + private Long id; + + private String title; + private String thumbnailUrl; + private Integer runningTime; + private LocalDate releaseDate; + + @Enumerated(value = EnumType.STRING) + private Genre genre; + + @Enumerated(value = EnumType.STRING) + private Rating rating; + + @OneToMany(mappedBy = "movie") + private Set movieTheaters = new HashSet<>(); + + @OneToMany(mappedBy = "movie") + private Set screenings = new HashSet<>(); + + public Movie(String title, String thumbnailUrl, Integer runningTime, LocalDate releaseDate, Genre genre, Rating rating) { + this.title = title; + this.thumbnailUrl = thumbnailUrl; + this.runningTime = runningTime; + this.releaseDate = releaseDate; + this.genre = genre; + this.rating = rating; + } +} diff --git a/domain/src/main/java/com/example/entity/MovieTheater.java b/domain/src/main/java/com/example/entity/MovieTheater.java new file mode 100644 index 000000000..b15998427 --- /dev/null +++ b/domain/src/main/java/com/example/entity/MovieTheater.java @@ -0,0 +1,45 @@ +package com.example.entity; + +import jakarta.persistence.*; +import lombok.AccessLevel; +import lombok.Getter; +import lombok.NoArgsConstructor; + +import java.util.Objects; + +@Entity +@Getter +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class MovieTheater extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(columnDefinition = "INT UNSIGNED") + private Long id; + + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "movie_id") + private Movie movie; + + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "theater_id") + private Theater theater; + + public MovieTheater(Movie movie, Theater theater) { + this.movie = movie; + this.theater = theater; + } + + @Override + public boolean equals(Object object) { + if (this == object) return true; + if (object == null || getClass() != object.getClass()) return false; + MovieTheater that = (MovieTheater) object; + return Objects.equals(id, that.id) && Objects.equals(movie, that.movie) && Objects.equals(theater, that.theater); + } + + @Override + public int hashCode() { + return Objects.hash(id, movie, theater); + } +} \ No newline at end of file diff --git a/domain/src/main/java/com/example/entity/Rating.java b/domain/src/main/java/com/example/entity/Rating.java new file mode 100644 index 000000000..6b3fb66f2 --- /dev/null +++ b/domain/src/main/java/com/example/entity/Rating.java @@ -0,0 +1,15 @@ +package com.example.entity; + +import lombok.Getter; +import lombok.RequiredArgsConstructor; + +@Getter +@RequiredArgsConstructor +public enum Rating { + ALL("전체 관람가"), + TWELVE("12세 관람가"), + FIFTEEN("15세 관람가"), + ADULT("청소년 관람 불가"); + + private final String description; +} diff --git a/domain/src/main/java/com/example/entity/Screening.java b/domain/src/main/java/com/example/entity/Screening.java new file mode 100644 index 000000000..1d812218d --- /dev/null +++ b/domain/src/main/java/com/example/entity/Screening.java @@ -0,0 +1,57 @@ +package com.example.entity; + +import jakarta.persistence.*; +import lombok.AccessLevel; +import lombok.Getter; +import lombok.NoArgsConstructor; + +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +@Entity +@Getter +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class Screening extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(columnDefinition = "INT UNSIGNED") + private Long id; + + private LocalDate screeningAt; + private LocalDateTime startedAt; + private LocalDateTime endedAt; + + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "movie_id") + private Movie movie; + + @OneToMany(mappedBy = "screening") + private List seats = new ArrayList<>(); + + public void initializeSeats() { + String[] rows = {"A", "B", "C", "D", "E"}; + for (String row : rows) { + for (int i = 1; i <= 5; i++) { + String seatNumber = row + i; + this.seats.add(new Seat(seatNumber, this)); + } + } + } + + @Override + public boolean equals(Object object) { + if (this == object) return true; + if (object == null || getClass() != object.getClass()) return false; + Screening screening = (Screening) object; + return Objects.equals(id, screening.id) && Objects.equals(screeningAt, screening.screeningAt) && Objects.equals(startedAt, screening.startedAt) && Objects.equals(endedAt, screening.endedAt) && Objects.equals(movie, screening.movie) && Objects.equals(seats, screening.seats); + } + + @Override + public int hashCode() { + return Objects.hash(id, screeningAt, startedAt, endedAt, movie, seats); + } +} \ No newline at end of file diff --git a/domain/src/main/java/com/example/entity/Seat.java b/domain/src/main/java/com/example/entity/Seat.java new file mode 100644 index 000000000..8f5d7483e --- /dev/null +++ b/domain/src/main/java/com/example/entity/Seat.java @@ -0,0 +1,37 @@ +package com.example.entity; + +import jakarta.persistence.*; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; + +@Entity +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class Seat { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(columnDefinition = "INT UNSIGNED") + private Long id; + + private String seatNumber; + + private boolean reserved; + + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "screening_id") + private Screening screening; + + public Seat(String seatNumber, Screening screening) { + this.seatNumber = seatNumber; + this.screening = screening; + this.reserved = false; + } + + public void reserve() { + this.reserved = true; + } + + public void cancelReservation() { + this.reserved = false; + } +} \ No newline at end of file diff --git a/domain/src/main/java/com/example/entity/Theater.java b/domain/src/main/java/com/example/entity/Theater.java new file mode 100644 index 000000000..5419225f3 --- /dev/null +++ b/domain/src/main/java/com/example/entity/Theater.java @@ -0,0 +1,28 @@ +package com.example.entity; + +import jakarta.persistence.*; +import lombok.AccessLevel; +import lombok.Getter; +import lombok.NoArgsConstructor; + +import java.util.ArrayList; +import java.util.List; + +@Entity +@Getter +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class Theater extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(columnDefinition = "INT UNSIGNED") + private Long id; + private String name; + + @OneToMany(mappedBy = "theater") + private List movieTheaters = new ArrayList<>(); + + public Theater(String name) { + this.name = name; + } +} diff --git a/domain/src/main/java/com/example/repository/MovieRepository.java b/domain/src/main/java/com/example/repository/MovieRepository.java new file mode 100644 index 000000000..15123c274 --- /dev/null +++ b/domain/src/main/java/com/example/repository/MovieRepository.java @@ -0,0 +1,14 @@ +package com.example.repository; + +import com.example.entity.Movie; +import org.springframework.data.domain.Sort; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; + +import java.time.LocalDate; +import java.util.List; + +public interface MovieRepository extends JpaRepository { + @Query("SELECT m FROM Movie m JOIN fetch m.screenings s JOIN FETCH m.movieTheaters mt JOIN FETCH mt.theater") + List findMovieWithScreeningAndTheater(Sort sort); +} diff --git a/domain/src/main/resources/.DS_Store b/domain/src/main/resources/.DS_Store new file mode 100644 index 000000000..5008ddfcf Binary files /dev/null and b/domain/src/main/resources/.DS_Store differ diff --git a/domain/src/main/resources/application-domain.yml b/domain/src/main/resources/application-domain.yml new file mode 100644 index 000000000..90daf1fa7 --- /dev/null +++ b/domain/src/main/resources/application-domain.yml @@ -0,0 +1,19 @@ +spring: + profiles: + default: local + datasource: + url: jdbc:mysql://localhost:3306/theater + username: root + password: 1234 + driver-class-name: com.mysql.cj.jdbc.Driver + +--- + +spring: + config: + activate: + on-profile: local + jpa: + hibernate: + ddl-auto: none + show-sql: true \ No newline at end of file diff --git a/domain/src/test/java/com/example/DomainApplicationTest.java b/domain/src/test/java/com/example/DomainApplicationTest.java new file mode 100644 index 000000000..3921fcdc0 --- /dev/null +++ b/domain/src/test/java/com/example/DomainApplicationTest.java @@ -0,0 +1,10 @@ +package com.example; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class DomainApplicationTest { + @Test + void contextLoad(){} +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..a4b76b953 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..e2847c820 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 000000000..f5feea6d6 --- /dev/null +++ b/gradlew @@ -0,0 +1,252 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 000000000..9d21a2183 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/init/01-schema.sql b/init/01-schema.sql new file mode 100644 index 000000000..e0580fb76 --- /dev/null +++ b/init/01-schema.sql @@ -0,0 +1,48 @@ +-- Movie 테이블 생성 +CREATE TABLE movie ( + id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, + release_date DATE NOT NULL, + running_time INT NOT NULL, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + thumbnail_url VARCHAR(255), + title VARCHAR(255) NOT NULL, + genre ENUM('ACTION', 'HORROR', 'ROMANCE', 'SF') NOT NULL, + rating ENUM('ADULT', 'ALL', 'FIFTEEN', 'TWELVE') NOT NULL +); + +-- Theater 테이블 생성 +CREATE TABLE theater ( + id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + name VARCHAR(255) NOT NULL +); + +-- Movie_Theater 테이블 생성 +CREATE TABLE movie_theater ( + id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + movie_id INT UNSIGNED NOT NULL, + theater_id INT UNSIGNED NOT NULL, +); + +-- Screening 테이블 생성 +CREATE TABLE screening ( + id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, + screening_at DATE NOT NULL, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + started_at TIMESTAMP NOT NULL, + ended_at TIMESTAMP NOT NULL, + movie_id INT UNSIGNED NOT NULL, +); + +-- Seat 테이블 생성 +CREATE TABLE seat ( + id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, + reserved BIT NOT NULL DEFAULT 0, + screening_id INT UNSIGNED NOT NULL, + seat_number VARCHAR(10) NOT NULL, +); diff --git a/init/02-data.sql b/init/02-data.sql new file mode 100644 index 000000000..b9255aff1 --- /dev/null +++ b/init/02-data.sql @@ -0,0 +1,78 @@ +-- Movie Table +INSERT INTO movie (id, release_date, running_time, created_at, updated_at, thumbnail_url, title, genre, rating) VALUES +(1, DATE '2025-01-01', 120, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'https://example.com/avengers.jpg', 'Avengers', 'ACTION', 'ALL'), +(2, DATE '2025-01-03', 105, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'https://example.com/conjuring.jpg', 'Conjuring', 'HORROR', 'FIFTEEN'), +(3, DATE '2024-12-25', 195, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'https://example.com/titanic.jpg', 'Titanic', 'ROMANCE', 'TWELVE'), +(4, DATE '2024-12-30', 169, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'https://example.com/interstellar.jpg', 'Interstellar', 'SF', 'ALL'); + +-- Theater Table +INSERT INTO theater (id, created_at, updated_at, name) VALUES +(1, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'Grand Cinema'), +(2, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'Cineplex'), +(3, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'Mega Theater'); + +-- Movie_Theater Table +INSERT INTO movie_theater (id, created_at, updated_at, movie_id, theater_id) VALUES +(1, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 1, 1), +(2, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 2, 2), +(3, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 3, 1), +(4, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 4, 3); + +INSERT INTO screening (id, screening_at, created_at, updated_at, started_at, ended_at, movie_id) VALUES +-- 영화 1 +(1, DATE '2025-01-10', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-10 10:00:00', TIMESTAMP '2025-01-10 12:00:00', 1), +(2, DATE '2025-01-10', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-10 13:00:00', TIMESTAMP '2025-01-10 15:00:00', 1), +(3, DATE '2025-01-11', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-11 16:00:00', TIMESTAMP '2025-01-11 18:00:00', 1), +(4, DATE '2025-01-12', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-12 19:00:00', TIMESTAMP '2025-01-12 21:00:00', 1), +(5, DATE '2025-01-13', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-13 10:30:00', TIMESTAMP '2025-01-13 12:30:00', 1), + +-- 영화 2 +(6, DATE '2025-01-11', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-11 14:00:00', TIMESTAMP '2025-01-11 16:00:00', 2), +(7, DATE '2025-01-11', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-11 16:30:00', TIMESTAMP '2025-01-11 18:30:00', 2), +(8, DATE '2025-01-12', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-12 13:00:00', TIMESTAMP '2025-01-12 15:00:00', 2), +(9, DATE '2025-01-13', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-13 15:30:00', TIMESTAMP '2025-01-13 17:30:00', 2), + +-- 영화 3 +(10, DATE '2025-01-12', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-12 18:00:00', TIMESTAMP '2025-01-12 21:15:00', 3), +(11, DATE '2025-01-12', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-12 20:00:00', TIMESTAMP '2025-01-12 22:15:00', 3), +(12, DATE '2025-01-13', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-13 14:00:00', TIMESTAMP '2025-01-13 16:45:00', 3), +(13, DATE '2025-01-14', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-14 10:00:00', TIMESTAMP '2025-01-14 12:30:00', 3), + +-- 영화 4 +(14, DATE '2025-01-13', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-13 20:00:00', TIMESTAMP '2025-01-13 22:45:00', 4), +(15, DATE '2025-01-13', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-13 21:30:00', TIMESTAMP '2025-01-14 00:15:00', 4), +(16, DATE '2025-01-14', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-14 11:00:00', TIMESTAMP '2025-01-14 13:30:00', 4), +(17, DATE '2025-01-14', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-14 15:00:00', TIMESTAMP '2025-01-14 17:45:00', 4), +(18, DATE '2025-01-14', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, TIMESTAMP '2025-01-14 19:00:00', TIMESTAMP '2025-01-14 21:30:00', 4); + + +-- Seat Table +-- For each screening, generate a 5x5 grid of seats +INSERT INTO seat (reserved, screening_id, seat_number) VALUES +-- Seats for Screening 1 +(0, 1, 'A1'), (0, 1, 'A2'), (0, 1, 'A3'), (0, 1, 'A4'), (0, 1, 'A5'), +(0, 1, 'B1'), (0, 1, 'B2'), (0, 1, 'B3'), (0, 1, 'B4'), (0, 1, 'B5'), +(0, 1, 'C1'), (0, 1, 'C2'), (0, 1, 'C3'), (0, 1, 'C4'), (0, 1, 'C5'), +(0, 1, 'D1'), (0, 1, 'D2'), (0, 1, 'D3'), (0, 1, 'D4'), (0, 1, 'D5'), +(0, 1, 'E1'), (0, 1, 'E2'), (0, 1, 'E3'), (0, 1, 'E4'), (0, 1, 'E5'), + +-- Seats for Screening 2 +(0, 2, 'A1'), (0, 2, 'A2'), (0, 2, 'A3'), (0, 2, 'A4'), (0, 2, 'A5'), +(0, 2, 'B1'), (0, 2, 'B2'), (0, 2, 'B3'), (0, 2, 'B4'), (0, 2, 'B5'), +(0, 2, 'C1'), (0, 2, 'C2'), (0, 2, 'C3'), (0, 2, 'C4'), (0, 2, 'C5'), +(0, 2, 'D1'), (0, 2, 'D2'), (0, 2, 'D3'), (0, 2, 'D4'), (0, 2, 'D5'), +(0, 2, 'E1'), (0, 2, 'E2'), (0, 2, 'E3'), (0, 2, 'E4'), (0, 2, 'E5'), + +-- Seats for Screening 3 +(0, 3, 'A1'), (0, 3, 'A2'), (0, 3, 'A3'), (0, 3, 'A4'), (0, 3, 'A5'), +(0, 3, 'B1'), (0, 3, 'B2'), (0, 3, 'B3'), (0, 3, 'B4'), (0, 3, 'B5'), +(0, 3, 'C1'), (0, 3, 'C2'), (0, 3, 'C3'), (0, 3, 'C4'), (0, 3, 'C5'), +(0, 3, 'D1'), (0, 3, 'D2'), (0, 3, 'D3'), (0, 3, 'D4'), (0, 3, 'D5'), +(0, 3, 'E1'), (0, 3, 'E2'), (0, 3, 'E3'), (0, 3, 'E4'), (0, 3, 'E5'), + +-- Seats for Screening 4 +(0, 4, 'A1'), (0, 4, 'A2'), (0, 4, 'A3'), (0, 4, 'A4'), (0, 4, 'A5'), +(0, 4, 'B1'), (0, 4, 'B2'), (0, 4, 'B3'), (0, 4, 'B4'), (0, 4, 'B5'), +(0, 4, 'C1'), (0, 4, 'C2'), (0, 4, 'C3'), (0, 4, 'C4'), (0, 4, 'C5'), +(0, 4, 'D1'), (0, 4, 'D2'), (0, 4, 'D3'), (0, 4, 'D4'), (0, 4, 'D5'), +(0, 4, 'E1'), (0, 4, 'E2'), (0, 4, 'E3'), (0, 4, 'E4'), (0, 4, 'E5'); diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 000000000..82b64308a --- /dev/null +++ b/settings.gradle @@ -0,0 +1,3 @@ +rootProject.name = 'redis_1st' +include 'api', 'application', 'domain' +