-
\ No newline at end of file
diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000..c595b00
--- /dev/null
+++ b/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,3 @@
+wrapperVersion=3.3.4
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.14/apache-maven-3.9.14-bin.zip
diff --git a/.vscode/settings.json b/.vscode/settings.json
deleted file mode 100644
index e012065..0000000
--- a/.vscode/settings.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "java.compile.nullAnalysis.mode": "automatic",
- "java.configuration.updateBuildConfiguration": "interactive"
-}
\ No newline at end of file
diff --git a/HELP.md b/HELP.md
index d5f8d1b..78b0ab1 100644
--- a/HELP.md
+++ b/HELP.md
@@ -7,15 +7,6 @@ For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/4.0.5/maven-plugin)
* [Create an OCI image](https://docs.spring.io/spring-boot/4.0.5/maven-plugin/build-image.html)
-* [Spring Web](https://docs.spring.io/spring-boot/4.0.5/reference/web/servlet.html)
-
-### Guides
-
-The following guides illustrate how to use some features concretely:
-
-* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/)
-* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/)
-* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/)
### Maven Parent overrides
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 6f2a684..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,155 +0,0 @@
-Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
-
- Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
-
-Using Creative Commons Public Licenses
-
-Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
-
-Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
-
-Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
-
-Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License
-
-By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
-
-Section 1 – Definitions.
-
- a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
-
- b. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
-
- c. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
-
- d. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
-
- e. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
-
- f. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
-
- g. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
-
- h. NonCommercial means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange.
-
- i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
-
- j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
-
- k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
-
-Section 2 – Scope.
-
- a. License grant.
-
- 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
-
- A. reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only; and
-
- B. produce and reproduce, but not Share, Adapted Material for NonCommercial purposes only.
-
- 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
-
- 3. Term. The term of this Public License is specified in Section 6(a).
-
- 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
-
- 5. Downstream recipients.
- A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
-
- B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
-
- 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
-
- b. Other rights.
-
- 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
-
- 2. Patent and trademark rights are not licensed under this Public License.
-
- 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial purposes.
-
-Section 3 – License Conditions.
-
-Your exercise of the Licensed Rights is expressly made subject to the following conditions.
-
- a. Attribution.
-
- 1. If You Share the Licensed Material, You must:
-
- A. retain the following if it is supplied by the Licensor with the Licensed Material:
-
- i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
-
- ii. a copyright notice;
-
- iii. a notice that refers to this Public License;
-
- iv. a notice that refers to the disclaimer of warranties;
-
- v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
-
- B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
-
- C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
-
- For the avoidance of doubt, You do not have permission under this Public License to Share Adapted Material.
-
- 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
-
- 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
-
-Section 4 – Sui Generis Database Rights.
-
-Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
-
- a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial purposes only and provided You do not Share Adapted Material;
-
- b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
-
- c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
-For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
-
-Section 5 – Disclaimer of Warranties and Limitation of Liability.
-
- a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
-
- b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
-
- c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
-
-Section 6 – Term and Termination.
-
- a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
-
- b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
-
- 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
-
- 2. upon express reinstatement by the Licensor.
-
- For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
-
- c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
-
- d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
-
-Section 7 – Other Terms and Conditions.
-
- a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
-
- b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
-
-Section 8 – Interpretation.
-
- a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
-
- b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
-
- c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
-
- d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
-
-Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
-
-Creative Commons may be contacted at creativecommons.org.
diff --git a/README.md b/README.md
deleted file mode 100644
index bedc665..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# bibimbap
-
-유니티 개발자 커뮤니티 비빔밥 웹사이트 프로젝트
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
deleted file mode 100644
index 4ed9437..0000000
--- a/docker-compose.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 로컬 개발용 PostgreSQL (Redis 없음)
-services:
- db:
- image: postgres:16-alpine
- environment:
- POSTGRES_USER: bibimbap
- POSTGRES_PASSWORD: bibimbap
- POSTGRES_DB: bibimbap
- ports:
- - "5432:5432"
- volumes:
- - bibimbap_pgdata:/var/lib/postgresql/data
-
-volumes:
- bibimbap_pgdata:
diff --git a/pom.xml b/pom.xml
index ffc12d4..94a716c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,47 +35,6 @@
org.springframework.bootspring-boot-starter-webmvc
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
- org.springframework.boot
- spring-boot-starter-validation
-
-
- org.springframework.boot
- spring-boot-starter-security
-
-
- org.apache.tomcat.embed
- tomcat-embed-jasper
-
-
-
- org.glassfish.web
- jakarta.servlet.jsp.jstl
-
-
-
- jakarta.servlet.jsp.jstl
- jakarta.servlet.jsp.jstl-api
-
-
- org.springframework.security
- spring-security-taglibs
-
-
- org.postgresql
- postgresql
- runtime
-
-
- com.h2database
- h2
- runtime
- org.projectlombok
@@ -89,7 +48,7 @@
org.springframework.boot
- spring-boot-starter-webmvc-test
+ spring-boot-starter-testtest
diff --git a/src/.DS_Store b/src/.DS_Store
deleted file mode 100644
index ea597a6..0000000
Binary files a/src/.DS_Store and /dev/null differ
diff --git a/src/main/.DS_Store b/src/main/.DS_Store
deleted file mode 100644
index 67e9ac5..0000000
Binary files a/src/main/.DS_Store and /dev/null differ
diff --git a/src/main/java/com/pandoli365/bibimbap/config/WebConfig.java b/src/main/java/com/pandoli365/bibimbap/config/WebConfig.java
deleted file mode 100644
index 336e486..0000000
--- a/src/main/java/com/pandoli365/bibimbap/config/WebConfig.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.pandoli365.bibimbap.config;
-
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
-
-import java.nio.file.Path;
-
-@Configuration
-public class WebConfig implements WebMvcConfigurer {
-
- @Value("${bibimbap.storage.root}")
- private String storageRoot;
-
- @Override
- public void addResourceHandlers(ResourceHandlerRegistry registry) {
- String location = Path.of(storageRoot).toAbsolutePath().normalize().toUri().toString();
- if (!location.endsWith("/")) {
- location = location + "/";
- }
- registry.addResourceHandler("/play/**").addResourceLocations(location);
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/domain/Game.java b/src/main/java/com/pandoli365/bibimbap/domain/Game.java
deleted file mode 100644
index 007a80e..0000000
--- a/src/main/java/com/pandoli365/bibimbap/domain/Game.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package com.pandoli365.bibimbap.domain;
-
-import jakarta.persistence.Column;
-import jakarta.persistence.Entity;
-import jakarta.persistence.FetchType;
-import jakarta.persistence.GeneratedValue;
-import jakarta.persistence.GenerationType;
-import jakarta.persistence.Id;
-import jakarta.persistence.JoinColumn;
-import jakarta.persistence.ManyToOne;
-import jakarta.persistence.Table;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-
-import java.time.Instant;
-
-@Entity
-@Table(name = "games")
-@Getter
-@Setter
-@NoArgsConstructor
-public class Game {
-
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
-
- @ManyToOne(fetch = FetchType.LAZY, optional = false)
- @JoinColumn(name = "owner_id", nullable = false)
- private UserAccount owner;
-
- @Column(nullable = false, length = 200)
- private String title;
-
- /** URL 경로용: 소문자, 숫자, 하이픈만 (예: my-webgl-demo) */
- @Column(nullable = false, unique = true, length = 120)
- private String slug;
-
- @Column(length = 4000)
- private String description;
-
- /** 카드 썸네일 — http(s) URL 또는 / 로 시작하는 경로. 비어 있으면 기본 이미지 */
- @Column(length = 2000)
- private String thumbnailUrl;
-
- /** 저장소 내 상대 디렉터리 (보통 slug와 동일) */
- @Column(nullable = false, length = 200)
- private String storageKey;
-
- @Column(nullable = false)
- private boolean published = true;
-
- @Column(nullable = false)
- private Instant createdAt = Instant.now();
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/domain/UserAccount.java b/src/main/java/com/pandoli365/bibimbap/domain/UserAccount.java
deleted file mode 100644
index 6514e81..0000000
--- a/src/main/java/com/pandoli365/bibimbap/domain/UserAccount.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.pandoli365.bibimbap.domain;
-
-import jakarta.persistence.Column;
-import jakarta.persistence.Entity;
-import jakarta.persistence.GeneratedValue;
-import jakarta.persistence.GenerationType;
-import jakarta.persistence.Id;
-import jakarta.persistence.Table;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-
-import java.time.Instant;
-
-@Entity
-@Table(name = "users")
-@Getter
-@Setter
-@NoArgsConstructor
-public class UserAccount {
-
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
-
- @Column(nullable = false, unique = true, length = 64)
- private String username;
-
- @Column(nullable = false)
- private String passwordHash;
-
- @Column(nullable = false)
- private Instant createdAt = Instant.now();
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/repository/GameRepository.java b/src/main/java/com/pandoli365/bibimbap/repository/GameRepository.java
deleted file mode 100644
index 2aa8db0..0000000
--- a/src/main/java/com/pandoli365/bibimbap/repository/GameRepository.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.pandoli365.bibimbap.repository;
-
-import com.pandoli365.bibimbap.domain.Game;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.Query;
-import org.springframework.data.repository.query.Param;
-
-import java.util.List;
-import java.util.Optional;
-
-public interface GameRepository extends JpaRepository {
-
- Optional findBySlug(String slug);
-
- boolean existsBySlug(String slug);
-
- @Query(
- "SELECT DISTINCT g FROM Game g "
- + "JOIN FETCH g.owner o "
- + "WHERE g.published = true "
- + "ORDER BY g.createdAt DESC")
- List findAllPublishedWithOwner();
-
- @Query(
- "SELECT DISTINCT g FROM Game g "
- + "JOIN FETCH g.owner o "
- + "WHERE g.published = true "
- + "AND (LOWER(g.title) LIKE LOWER(CONCAT('%', :q, '%')) "
- + "OR LOWER(o.username) LIKE LOWER(CONCAT('%', :q, '%'))) "
- + "ORDER BY g.createdAt DESC")
- List searchPublishedWithOwner(@Param("q") String q);
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/repository/UserAccountRepository.java b/src/main/java/com/pandoli365/bibimbap/repository/UserAccountRepository.java
deleted file mode 100644
index 1f83fa9..0000000
--- a/src/main/java/com/pandoli365/bibimbap/repository/UserAccountRepository.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.pandoli365.bibimbap.repository;
-
-import com.pandoli365.bibimbap.domain.UserAccount;
-import org.springframework.data.jpa.repository.JpaRepository;
-
-import java.util.Optional;
-
-public interface UserAccountRepository extends JpaRepository {
-
- Optional findByUsername(String username);
-
- boolean existsByUsername(String username);
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/security/AccountUserDetailsService.java b/src/main/java/com/pandoli365/bibimbap/security/AccountUserDetailsService.java
deleted file mode 100644
index 1a87f5d..0000000
--- a/src/main/java/com/pandoli365/bibimbap/security/AccountUserDetailsService.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.pandoli365.bibimbap.security;
-
-import com.pandoli365.bibimbap.repository.UserAccountRepository;
-import lombok.RequiredArgsConstructor;
-import org.springframework.security.core.userdetails.User;
-import org.springframework.security.core.userdetails.UserDetails;
-import org.springframework.security.core.userdetails.UserDetailsService;
-import org.springframework.security.core.userdetails.UsernameNotFoundException;
-import org.springframework.stereotype.Service;
-
-@Service
-@RequiredArgsConstructor
-public class AccountUserDetailsService implements UserDetailsService {
-
- private final UserAccountRepository userAccountRepository;
-
- @Override
- public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
- var account = userAccountRepository
- .findByUsername(username)
- .orElseThrow(() -> new UsernameNotFoundException(username));
- return User.withUsername(account.getUsername())
- .password(account.getPasswordHash())
- .roles("USER")
- .build();
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/security/SecurityConfig.java b/src/main/java/com/pandoli365/bibimbap/security/SecurityConfig.java
deleted file mode 100644
index 86721d8..0000000
--- a/src/main/java/com/pandoli365/bibimbap/security/SecurityConfig.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.pandoli365.bibimbap.security;
-
-import jakarta.servlet.DispatcherType;
-import lombok.RequiredArgsConstructor;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
-import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
-import org.springframework.security.crypto.password.PasswordEncoder;
-import org.springframework.security.web.SecurityFilterChain;
-
-@Configuration
-@EnableWebSecurity
-@RequiredArgsConstructor
-public class SecurityConfig {
-
- @Bean
- public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
- // Spring Security 6+: 인증 필터가 FORWARD/INCLUDE에도 적용됨. JSP 렌더링 등 내부 포워드가
- // 다시 검사되어 루프(/) <-> (/login)가 날 수 있어, 내부 디스패치는 먼저 허용한다.
- // @see https://docs.spring.io/spring-security/reference/migration-7/web.html
- http.authorizeHttpRequests(
- auth -> auth.dispatcherTypeMatchers(
- DispatcherType.FORWARD, DispatcherType.INCLUDE, DispatcherType.ERROR)
- .permitAll()
- .requestMatchers(
- "/",
- "/home",
- "/login",
- "/register",
- "/play/**",
- "/error",
- "/css/**",
- "/img/**")
- .permitAll()
- .anyRequest()
- .authenticated())
- .formLogin(form -> form.loginPage("/login").permitAll().defaultSuccessUrl("/", true))
- .logout(logout -> logout.logoutSuccessUrl("/"));
- return http.build();
- }
-
- @Bean
- public PasswordEncoder passwordEncoder() {
- return new BCryptPasswordEncoder();
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/service/FileStorageService.java b/src/main/java/com/pandoli365/bibimbap/service/FileStorageService.java
deleted file mode 100644
index 5da8d1d..0000000
--- a/src/main/java/com/pandoli365/bibimbap/service/FileStorageService.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package com.pandoli365.bibimbap.service;
-
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.stereotype.Service;
-import org.springframework.web.multipart.MultipartFile;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipInputStream;
-
-@Service
-public class FileStorageService {
-
- private final Path root;
-
- public FileStorageService(@Value("${bibimbap.storage.root}") String rootPath) throws IOException {
- this.root = Path.of(rootPath).toAbsolutePath().normalize();
- Files.createDirectories(this.root);
- }
-
- public Path root() {
- return root;
- }
-
- /**
- * Unity WebGL 빌드 폴더를 zip으로 묶어 올린 경우 압축을 풀어 {@code storageKey} 하위에 둡니다.
- * Zip slip 방지를 위해 엔트리 경로를 검증합니다.
- */
- public void extractWebGlZip(String storageKey, MultipartFile zipFile) throws IOException {
- Path destDir = root.resolve(storageKey).normalize();
- if (!destDir.startsWith(root)) {
- throw new IllegalArgumentException("Invalid storage key");
- }
- Files.createDirectories(destDir);
- try (InputStream in = zipFile.getInputStream(); ZipInputStream zis = new ZipInputStream(in)) {
- ZipEntry entry;
- while ((entry = zis.getNextEntry()) != null) {
- if (entry.isDirectory()) {
- continue;
- }
- String name = entry.getName();
- if (name.startsWith("/") || name.contains("..")) {
- throw new IllegalArgumentException("Invalid zip entry: " + name);
- }
- Path target = destDir.resolve(name).normalize();
- if (!target.startsWith(destDir)) {
- throw new IllegalArgumentException("Zip entry escapes target directory: " + name);
- }
- Files.createDirectories(target.getParent());
- Files.copy(zis, target);
- }
- }
- }
-
- public void deleteGameDirectory(String storageKey) throws IOException {
- Path dir = root.resolve(storageKey).normalize();
- if (!dir.startsWith(root) || !Files.isDirectory(dir)) {
- return;
- }
- try (var walk = Files.walk(dir)) {
- walk.sorted((a, b) -> b.getNameCount() - a.getNameCount())
- .forEach(p -> {
- try {
- Files.deleteIfExists(p);
- } catch (IOException ignored) {
- // best effort
- }
- });
- }
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/service/GameService.java b/src/main/java/com/pandoli365/bibimbap/service/GameService.java
deleted file mode 100644
index 13056ca..0000000
--- a/src/main/java/com/pandoli365/bibimbap/service/GameService.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package com.pandoli365.bibimbap.service;
-
-import com.pandoli365.bibimbap.domain.Game;
-import com.pandoli365.bibimbap.domain.UserAccount;
-import com.pandoli365.bibimbap.repository.GameRepository;
-import lombok.RequiredArgsConstructor;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.multipart.MultipartFile;
-
-import java.io.IOException;
-import java.util.List;
-
-@Service
-@RequiredArgsConstructor
-public class GameService {
-
- private final GameRepository gameRepository;
- private final FileStorageService fileStorageService;
-
- @Transactional(readOnly = true)
- public List listPublished(String query) {
- String q = query == null ? "" : query.trim();
- if (q.isEmpty()) {
- return gameRepository.findAllPublishedWithOwner();
- }
- return gameRepository.searchPublishedWithOwner(q);
- }
-
- @Transactional
- public Game create(UserAccount owner, String title, String slug, String description, MultipartFile zip)
- throws IOException {
- String normalized = slug.trim().toLowerCase();
- if (gameRepository.existsBySlug(normalized)) {
- throw new IllegalArgumentException("이미 사용 중인 슬러그입니다.");
- }
- fileStorageService.extractWebGlZip(normalized, zip);
-
- Game g = new Game();
- g.setOwner(owner);
- g.setTitle(title.trim());
- g.setSlug(normalized);
- g.setDescription(description != null ? description.trim() : null);
- g.setStorageKey(normalized);
- g.setPublished(true);
- return gameRepository.save(g);
- }
-
- @Transactional(readOnly = true)
- public Game getBySlug(String slug) {
- return gameRepository.findBySlug(slug).orElseThrow(() -> new IllegalArgumentException("게임을 찾을 수 없습니다."));
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/service/RegistrationService.java b/src/main/java/com/pandoli365/bibimbap/service/RegistrationService.java
deleted file mode 100644
index b7d1d93..0000000
--- a/src/main/java/com/pandoli365/bibimbap/service/RegistrationService.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.pandoli365.bibimbap.service;
-
-import com.pandoli365.bibimbap.domain.UserAccount;
-import com.pandoli365.bibimbap.repository.UserAccountRepository;
-import lombok.RequiredArgsConstructor;
-import org.springframework.security.crypto.password.PasswordEncoder;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
-@Service
-@RequiredArgsConstructor
-public class RegistrationService {
-
- private final UserAccountRepository userAccountRepository;
- private final PasswordEncoder passwordEncoder;
-
- @Transactional
- public UserAccount register(String username, String rawPassword) {
- if (userAccountRepository.existsByUsername(username)) {
- throw new IllegalArgumentException("이미 사용 중인 아이디입니다.");
- }
- UserAccount u = new UserAccount();
- u.setUsername(username);
- u.setPasswordHash(passwordEncoder.encode(rawPassword));
- return userAccountRepository.save(u);
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/web/GameController.java b/src/main/java/com/pandoli365/bibimbap/web/GameController.java
deleted file mode 100644
index 70f0215..0000000
--- a/src/main/java/com/pandoli365/bibimbap/web/GameController.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package com.pandoli365.bibimbap.web;
-
-import com.pandoli365.bibimbap.repository.UserAccountRepository;
-import com.pandoli365.bibimbap.service.GameService;
-import com.pandoli365.bibimbap.web.dto.GameCreateForm;
-import jakarta.validation.Valid;
-import lombok.RequiredArgsConstructor;
-import org.springframework.security.core.annotation.AuthenticationPrincipal;
-import org.springframework.security.core.userdetails.UserDetails;
-import org.springframework.stereotype.Controller;
-import org.springframework.ui.Model;
-import org.springframework.validation.BindingResult;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.ModelAttribute;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.multipart.MultipartFile;
-
-import java.io.IOException;
-
-@Controller
-@RequiredArgsConstructor
-public class GameController {
-
- private final GameService gameService;
- private final UserAccountRepository userAccountRepository;
-
- @GetMapping("/games/new")
- public String newForm(Model model) {
- model.addAttribute("form", new GameCreateForm());
- return "games/new";
- }
-
- @PostMapping("/games")
- public String create(
- @AuthenticationPrincipal UserDetails principal,
- @Valid @ModelAttribute("form") GameCreateForm form,
- BindingResult bindingResult,
- @RequestParam("file") MultipartFile file,
- Model model) {
- if (file == null || file.isEmpty()) {
- bindingResult.reject("game.file.required", "WebGL 빌드 zip 파일을 선택하세요.");
- }
- if (bindingResult.hasErrors()) {
- return "games/new";
- }
- var owner =
- userAccountRepository.findByUsername(principal.getUsername()).orElseThrow();
- try {
- var game = gameService.create(owner, form.getTitle(), form.getSlug(), form.getDescription(), file);
- return "redirect:/play/" + game.getSlug() + "/";
- } catch (IllegalArgumentException e) {
- bindingResult.reject("game.invalid", e.getMessage());
- return "games/new";
- } catch (IOException e) {
- bindingResult.reject("game.io", "파일 저장에 실패했습니다: " + e.getMessage());
- return "games/new";
- }
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/web/HomeController.java b/src/main/java/com/pandoli365/bibimbap/web/HomeController.java
deleted file mode 100644
index 0044f4e..0000000
--- a/src/main/java/com/pandoli365/bibimbap/web/HomeController.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.pandoli365.bibimbap.web;
-
-import com.pandoli365.bibimbap.service.GameService;
-import lombok.RequiredArgsConstructor;
-import org.springframework.stereotype.Controller;
-import org.springframework.ui.Model;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-
-@Controller
-@RequiredArgsConstructor
-public class HomeController {
-
- private final GameService gameService;
-
- @GetMapping({"/", "/home"})
- public String home(
- @RequestParam(name = "q", required = false) String q, Model model) {
- model.addAttribute("games", gameService.listPublished(q));
- model.addAttribute("q", q != null ? q : "");
- return "home";
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/web/LoginController.java b/src/main/java/com/pandoli365/bibimbap/web/LoginController.java
deleted file mode 100644
index 962ecf8..0000000
--- a/src/main/java/com/pandoli365/bibimbap/web/LoginController.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.pandoli365.bibimbap.web;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.GetMapping;
-
-@Controller
-public class LoginController {
-
- @GetMapping("/login")
- public String login() {
- return "login";
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/web/PlayController.java b/src/main/java/com/pandoli365/bibimbap/web/PlayController.java
deleted file mode 100644
index e566d44..0000000
--- a/src/main/java/com/pandoli365/bibimbap/web/PlayController.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.pandoli365.bibimbap.web;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-
-/**
- * WebGL 플레이 URL을 {@code /play/{slug}/} 형태로만 노출하고, 실제 Unity 빌드의 {@code index.html}은
- * 내부 forward로 처리합니다.
- */
-@Controller
-public class PlayController {
-
- @GetMapping("/play/{slug}")
- public String redirectToTrailingSlash(@PathVariable String slug) {
- return "redirect:/play/" + slug + "/";
- }
-
- @GetMapping("/play/{slug}/")
- public String forwardToWebGlIndex(@PathVariable String slug) {
- return "forward:/play/" + slug + "/index.html";
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/web/RegisterController.java b/src/main/java/com/pandoli365/bibimbap/web/RegisterController.java
deleted file mode 100644
index 2cf59f3..0000000
--- a/src/main/java/com/pandoli365/bibimbap/web/RegisterController.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.pandoli365.bibimbap.web;
-
-import com.pandoli365.bibimbap.service.RegistrationService;
-import com.pandoli365.bibimbap.web.dto.RegisterForm;
-import jakarta.validation.Valid;
-import lombok.RequiredArgsConstructor;
-import org.springframework.stereotype.Controller;
-import org.springframework.ui.Model;
-import org.springframework.validation.BindingResult;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.ModelAttribute;
-import org.springframework.web.bind.annotation.PostMapping;
-
-@Controller
-@RequiredArgsConstructor
-public class RegisterController {
-
- private final RegistrationService registrationService;
-
- @GetMapping("/register")
- public String form(Model model) {
- model.addAttribute("form", new RegisterForm());
- return "register";
- }
-
- @PostMapping("/register")
- public String submit(
- @Valid @ModelAttribute("form") RegisterForm form, BindingResult bindingResult) {
- if (bindingResult.hasErrors()) {
- return "register";
- }
- try {
- registrationService.register(form.getUsername(), form.getPassword());
- } catch (IllegalArgumentException e) {
- bindingResult.reject("register.duplicate", e.getMessage());
- return "register";
- }
- return "redirect:/login?registered";
- }
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/web/dto/GameCreateForm.java b/src/main/java/com/pandoli365/bibimbap/web/dto/GameCreateForm.java
deleted file mode 100644
index 8ac9915..0000000
--- a/src/main/java/com/pandoli365/bibimbap/web/dto/GameCreateForm.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.pandoli365.bibimbap.web.dto;
-
-import jakarta.validation.constraints.NotBlank;
-import jakarta.validation.constraints.Pattern;
-import jakarta.validation.constraints.Size;
-import lombok.Data;
-
-@Data
-public class GameCreateForm {
-
- @NotBlank(message = "제목을 입력하세요.")
- @Size(max = 200)
- private String title;
-
- /**
- * URL에 쓰이는 식별자 (예: my-game). Unity 빌드 루트 폴더명과 맞추면 관리가 쉽습니다.
- */
- @NotBlank(message = "슬러그를 입력하세요.")
- @Pattern(
- regexp = "[a-z0-9]+(?:-[a-z0-9]+)*",
- message = "슬러그는 소문자, 숫자, 하이픈만 사용할 수 있습니다.")
- @Size(max = 120)
- private String slug;
-
- @Size(max = 4000)
- private String description;
-}
diff --git a/src/main/java/com/pandoli365/bibimbap/web/dto/RegisterForm.java b/src/main/java/com/pandoli365/bibimbap/web/dto/RegisterForm.java
deleted file mode 100644
index 0447f32..0000000
--- a/src/main/java/com/pandoli365/bibimbap/web/dto/RegisterForm.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.pandoli365.bibimbap.web.dto;
-
-import jakarta.validation.constraints.NotBlank;
-import jakarta.validation.constraints.Size;
-import lombok.Data;
-
-@Data
-public class RegisterForm {
-
- @NotBlank(message = "아이디를 입력하세요.")
- @Size(min = 3, max = 64, message = "아이디는 3~64자여야 합니다.")
- private String username;
-
- @NotBlank(message = "비밀번호를 입력하세요.")
- @Size(min = 8, max = 128, message = "비밀번호는 8자 이상이어야 합니다.")
- private String password;
-}
diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
deleted file mode 100644
index 0e313ac..0000000
--- a/src/main/resources/application-dev.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-# 원격 PostgreSQL에 닿지 않을 때 로컬에서 앱만 띄워볼 때 사용
-# 실행: --spring.profiles.active=dev (또는 SPRING_PROFILES_ACTIVE=dev)
-spring:
- datasource:
- url: jdbc:h2:mem:bibimbap;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
- driver-class-name: org.h2.Driver
- username: sa
- password: ""
- jpa:
- database-platform: org.hibernate.dialect.H2Dialect
- hibernate:
- ddl-auto: update
diff --git a/src/main/resources/application.properties.example b/src/main/resources/application.properties.example
deleted file mode 100644
index 0a0c3be..0000000
--- a/src/main/resources/application.properties.example
+++ /dev/null
@@ -1,23 +0,0 @@
-spring.application.name=bibimbap
-
-# PostgreSQL — 이 파일을 application.properties 로 복사한 뒤 값을 채우세요.
-# cp src/main/resources/application.properties.example src/main/resources/application.properties
-#
-# 연결 실패(Connect timed out) 시: PC와 DB 서버가 같은 네트워크인지, 방화벽 5432,
-# postgresql.conf listen_addresses, pg_hba.conf 허용을 확인하세요.
-# 원격 DB 없이 로컬만: IntelliJ VM 옵션 또는 실행 인자에
-# --spring.profiles.active=dev
-# (H2 인메모리 — application-dev.yml)
-spring.datasource.url=jdbc:postgresql://localhost:5432/bibimbap
-spring.datasource.username=bibimbap
-spring.datasource.password=changeme
-spring.datasource.hikari.maximum-pool-size=10
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.open-in-view=false
-spring.jpa.properties.hibernate.jdbc.time_zone=UTC
-
-spring.servlet.multipart.max-file-size=512MB
-spring.servlet.multipart.max-request-size=512MB
-
-bibimbap.storage.root=${BIBIMBAP_STORAGE_ROOT:./data/webgl}
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
deleted file mode 100644
index 06ee994..0000000
--- a/src/main/resources/application.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-spring:
- mvc:
- view:
- prefix: /WEB-INF/jsp/
- suffix: .jsp
- jpa:
- # JDBC 메타데이터 없이도 방언 고정 (연결 실패 시 보조 메시지 완화)
- database-platform: org.hibernate.dialect.PostgreSQLDialect
- thymeleaf:
- # 화면은 전부 JSP(/WEB-INF/jsp). Thymeleaf는 사용하지 않음.
- enabled: false
diff --git a/src/main/resources/dev/application.properties b/src/main/resources/dev/application.properties
new file mode 100644
index 0000000..30a5f68
--- /dev/null
+++ b/src/main/resources/dev/application.properties
@@ -0,0 +1,17 @@
+spring.application.name=bibimbap
+spring.profiles.active=dev
+
+spring.mvc.view.prefix=/WEB-INF/views/
+spring.mvc.view.suffix=.jsp
+
+spring.config.import=classpath:db.properties, classpath:common.properties
+
+server.address=0.0.0.0
+
+server.servlet.encoding.force-response=true
+
+spring.servlet.multipart.max-file-size=10GB
+spring.servlet.multipart.max-request-size=10GB
+
+mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl
+logging.level.org.apache.ibatis=TRACE
\ No newline at end of file
diff --git a/src/main/resources/dev/db.properties b/src/main/resources/dev/db.properties
new file mode 100644
index 0000000..5b19e98
--- /dev/null
+++ b/src/main/resources/dev/db.properties
@@ -0,0 +1,9 @@
+spring.datasource.driver-class-name=org.postgresql.Driver
+spring.datasource.url=jdbc:postgresql://192.168.1.3:5432/project_furry?currentSchema=library_live
+spring.datasource.username=furry_images
+spring.datasource.password=L5qOdLNFB6mIRjO
+
+mybatis.mapper-locations=classpath:mappers/*.xml
+
+## resultType aliases ##
+mybatis.type-aliases-package=com.pandoli365.fursuit_library.model.user
\ No newline at end of file
diff --git a/src/main/resources/live/application.properties b/src/main/resources/live/application.properties
new file mode 100644
index 0000000..886e044
--- /dev/null
+++ b/src/main/resources/live/application.properties
@@ -0,0 +1,17 @@
+spring.application.name=bibimbap
+spring.profiles.active=live
+
+spring.mvc.view.prefix=/WEB-INF/views/
+spring.mvc.view.suffix=.jsp
+
+spring.config.import=classpath:db.properties, classpath:common.properties
+
+server.address=0.0.0.0
+
+server.servlet.encoding.force-response=true
+
+spring.servlet.multipart.max-file-size=10GB
+spring.servlet.multipart.max-request-size=10GB
+
+mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl
+logging.level.org.apache.ibatis=TRACE
\ No newline at end of file
diff --git a/src/main/resources/live/db.properties b/src/main/resources/live/db.properties
new file mode 100644
index 0000000..5b19e98
--- /dev/null
+++ b/src/main/resources/live/db.properties
@@ -0,0 +1,9 @@
+spring.datasource.driver-class-name=org.postgresql.Driver
+spring.datasource.url=jdbc:postgresql://192.168.1.3:5432/project_furry?currentSchema=library_live
+spring.datasource.username=furry_images
+spring.datasource.password=L5qOdLNFB6mIRjO
+
+mybatis.mapper-locations=classpath:mappers/*.xml
+
+## resultType aliases ##
+mybatis.type-aliases-package=com.pandoli365.fursuit_library.model.user
\ No newline at end of file
diff --git a/src/main/resources/static/css/main.css b/src/main/resources/static/css/main.css
deleted file mode 100644
index 20f1444..0000000
--- a/src/main/resources/static/css/main.css
+++ /dev/null
@@ -1,213 +0,0 @@
-:root {
- --bg: #0f1115;
- --surface: #1a1d24;
- --border: #2a2f3a;
- --text: #e8eaed;
- --muted: #9aa0a6;
- --accent: #7c9cff;
- --accent-hover: #a8bfff;
-}
-
-* {
- box-sizing: border-box;
-}
-
-body {
- margin: 0;
- font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
- background: var(--bg);
- color: var(--text);
- line-height: 1.5;
- min-height: 100vh;
-}
-
-a {
- color: var(--accent);
- text-decoration: none;
-}
-
-a:hover {
- color: var(--accent-hover);
- text-decoration: underline;
-}
-
-.site-header {
- background: var(--surface);
- border-bottom: 1px solid var(--border);
- position: sticky;
- top: 0;
- z-index: 10;
-}
-
-.site-header__inner {
- max-width: 1200px;
- margin: 0 auto;
- padding: 0.75rem 1rem;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: 1rem;
-}
-
-.logo {
- font-weight: 700;
- font-size: 1.25rem;
- color: var(--text);
- text-decoration: none;
-}
-
-.logo:hover {
- color: var(--accent);
- text-decoration: none;
-}
-
-.search {
- flex: 1 1 240px;
- display: flex;
- gap: 0.5rem;
- min-width: 0;
-}
-
-.search input[type="search"] {
- flex: 1;
- min-width: 0;
- padding: 0.5rem 0.75rem;
- border: 1px solid var(--border);
- border-radius: 8px;
- background: var(--bg);
- color: var(--text);
- font: inherit;
-}
-
-.search button {
- padding: 0.5rem 1rem;
- border: none;
- border-radius: 8px;
- background: var(--accent);
- color: #111;
- font: inherit;
- font-weight: 600;
- cursor: pointer;
-}
-
-.search button:hover {
- filter: brightness(1.08);
-}
-
-.auth {
- display: flex;
- align-items: center;
- gap: 0.75rem;
- flex-wrap: wrap;
-}
-
-.btn-primary {
- padding: 0.4rem 0.85rem;
- border-radius: 8px;
- background: var(--accent);
- color: #111 !important;
- font-weight: 600;
- text-decoration: none !important;
-}
-
-.btn-primary:hover {
- filter: brightness(1.08);
- color: #111 !important;
-}
-
-.logout-form {
- display: inline;
- margin: 0;
-}
-
-.link-btn {
- background: none;
- border: none;
- color: var(--accent);
- font: inherit;
- cursor: pointer;
- padding: 0;
- text-decoration: underline;
-}
-
-.container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 1.5rem 1rem 3rem;
-}
-
-.lead {
- color: var(--muted);
- margin: 0 0 1.5rem;
-}
-
-.empty {
- color: var(--muted);
-}
-
-.card-grid {
- list-style: none;
- margin: 0;
- padding: 0;
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
- gap: 1.25rem;
-}
-
-.card {
- background: var(--surface);
- border: 1px solid var(--border);
- border-radius: 12px;
- overflow: hidden;
- height: 100%;
- display: flex;
- flex-direction: column;
-}
-
-.card__media {
- display: block;
- aspect-ratio: 16 / 9;
- background: #111;
- overflow: hidden;
-}
-
-.card__media img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
-}
-
-.card__body {
- padding: 1rem;
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: 0.35rem;
-}
-
-.card__title {
- margin: 0;
- font-size: 1.05rem;
- line-height: 1.35;
-}
-
-.card__title a {
- color: var(--text);
- text-decoration: none;
-}
-
-.card__title a:hover {
- color: var(--accent);
-}
-
-.card__author {
- margin: 0;
- font-size: 0.9rem;
- color: var(--muted);
-}
-
-.card__author-name {
- color: var(--text);
- font-weight: 500;
-}
diff --git a/src/main/resources/static/img/logo.png b/src/main/resources/static/img/logo.png
deleted file mode 100644
index d5a720d..0000000
Binary files a/src/main/resources/static/img/logo.png and /dev/null differ
diff --git a/src/main/webapp/WEB-INF/jsp/games/new.jsp b/src/main/webapp/WEB-INF/jsp/games/new.jsp
deleted file mode 100644
index 234e3f7..0000000
--- a/src/main/webapp/WEB-INF/jsp/games/new.jsp
+++ /dev/null
@@ -1,37 +0,0 @@
-<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
-
-
-
-
-
- 게임 올리기 — 비빔밥
-
-
-
-
-
WebGL 게임 올리기
-
Unity WebGL 빌드 폴더 내용을 zip으로 묶어 업로드하세요. 압축 해제 후 최상위에 index.html이 있어야 합니다.