Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# 📖 똑DDOK — 당신 곁의 동료, 딸깍!

> 지도 기반 프로젝트·스터디 매칭 & 팀 협업 플랫폼
> 지도 기반 프로젝트·스터디 매칭 & 팀 협업 플랫폼

<br />

지도 기반으로 스터디/프로젝트를 빠르게 찾고 참여하고, 팀 협업(채팅·일정·알림)까지 한 곳에서 처리하는 플랫폼입니다.
지도 기반으로 스터디/프로젝트를 빠르게 찾고 참여하고, 팀 협업(채팅·일정·알림)까지 한 곳에서 처리하는 플랫폼입니다.

프로젝트 기간: 2025.08 ~ 2025.09 (기획 및 개발)
시연영상 [YouTube]()
Link:
Code: [FE](https://github.com/DeepDirect/ddok-fe), [BE](https://github.com/DeepDirect/ddok-be)
시연영상 [YouTube](https://www.youtube.com/watch?v=lYVMEXc4BAU)
Link: [DDOK](http://www.deepdirect.site)
Code: [FE](https://github.com/DeepDirect/ddok-fe), [BE](https://github.com/DeepDirect/ddok-be)

---

## 🫶 팀원
| 이름 | 역할 | GitHub 링크 |
|----------|--------------------|------------------------------------------------|
| 정원용 | 팀장, Full Stack, Infra | [@projectmiluju](https://github.com/jihun-dev) |
| 정원용 | 팀장, Full Stack, Infra | [@projectmiluju](https://github.com/projectmiluju) |
| 권혜진 | Backend | [@sunsetkk](https://github.com/sunsetkk) |
| 박건 | Frontend | [@Jammanb0](https://github.com/Jammanb0) |
| 박소현 | Frontend | [@ssoogit](https://github.com/ssoogit) |
Expand Down Expand Up @@ -89,4 +89,4 @@ src/
## 🏃‍➡️ 실행
```bash
./start-dev.sh
```
```
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok'

// Swagger
implementation 'io.swagger.core.v3:swagger-annotations:2.2.34'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.9'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0'


// JWT
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
Expand Down
56 changes: 21 additions & 35 deletions src/main/java/goorm/ddok/global/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
@@ -1,43 +1,29 @@
package goorm.ddok.global.config;

import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.context.annotation.Bean;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import io.swagger.v3.oas.annotations.servers.Server;

import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
@OpenAPIDefinition(
info = @Info(title = "DeepWebIDE API", version = "v1.1", description = "DeepWebIDE API 명세서"),
servers = {
@io.swagger.v3.oas.annotations.servers.Server(url = "http://localhost:8080", description = "로컬 서버"),
@Server(url = "https://api.deepdirect.site", description = "배포 서버")
},
security = @SecurityRequirement(name = "Authorization")
)
@SecurityScheme(
name = "Authorization",
type = SecuritySchemeType.HTTP,
scheme = "bearer",
bearerFormat = "JWT"
)
public class SwaggerConfig {
private static final String SECURITY_SCHEME_NAME = "bearerAuth";

private OpenAPI base() {
return new OpenAPI()
.info(new Info().title("DDOK API").description("DDOK 프로젝트 REST API 문서").version("v1"))
.components(new Components()
.addSecuritySchemes("Authorization",
new SecurityScheme().name("Authorization")
.type(SecurityScheme.Type.HTTP)
.scheme("bearer")
.bearerFormat("JWT"))
.addSecuritySchemes("Reauth",
new SecurityScheme().name("X-Reauth-Token")
.in(SecurityScheme.In.HEADER)
.type(SecurityScheme.Type.APIKEY)))
.addSecurityItem(new SecurityRequirement().addList(SECURITY_SCHEME_NAME));
}

@Bean @org.springframework.context.annotation.Profile("local")
public OpenAPI openAPILocal() {
return base().servers(List.of(new Server().url("http://localhost:8080").description("Local")));
}

@Bean @org.springframework.context.annotation.Profile("prod")
public OpenAPI openAPIProd() {
return base().servers(List.of(new Server().url("https://api.deepdirect.site").description("Prod")));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class TechStackSeeder implements ApplicationRunner {
@Transactional
public void run(ApplicationArguments args) {
long count = techStackRepository.count();
if (count > defaultStacks.size()) {
if (count >= defaultStacks.size()) {
log.info("[TechStackSeeder] Skip seeding. Existing rows: {}", count);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spring:
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
hibernate:
ddl-auto: create
ddl-auto: update
show-sql: true
properties:
hibernate:
Expand Down