/BackEnd

Primary LanguageJava

πŸ‘¨β€πŸ‘§β€πŸ‘§ OIDC 곡λͺ¨μ „ (WaterMelone-νŒ€) Backend

이벀트 ν‹°μΌ“ 예맀 μ„œλΉ„μŠ€λ₯Ό μœ„ν•œ μ›Ή μ–΄ν”Œλ¦¬μΌ€μ΄μ…˜

πŸ›  κΈ°μˆ μŠ€νƒ


Get Started

ubuntu-18.04와 jdk1.8ν™˜κ²½μ—μ„œ μ‹€ν–‰ν•˜μ˜€μŠ΅λ‹ˆλ‹€.

Gateway server

cd gateway
./gradlew build
java -jar ./build/libs/gateway-0.0.1-SNAPSHOT.jar

Eureka server

cd eureka
./gradlew build
java -jar ./build/libs/eureka-0.0.1-SNAPSHOT.jar

Member server

# database type: mysql, database: userdb, username: root, password: oidc2020
cd member
./gradlew build
java -jar ./build/libs/member-0.0.1-SNAPSHOT.jar

Reservation server

# database type: mysql, database: reservation, username: root, password: oidc2020
cd reservation
./gradlew build
java -jar ./build/libs/reservation-0.0.1-SNAPSHOT.jar

Show server

# database type: postgresql, database: postgres, username: postgres, password: oidc2020
# ν…ŒμŠ€νŠΈ μ§„ν–‰μ‹œ dockerκ°€ μ„€μΉ˜λ˜μ–΄μžˆμ–΄μ•Ό ν•˜κ³  이둜 인해 λΉŒλ“œκ°€ μ‹€νŒ¨ν•΄λ„  μ„œλ²„λŠ” μ‹€ν–‰κ°€λŠ₯ν•©λ‹ˆλ‹€.
cd show
./gradlew build
java -jar ./build/libs/show-0.0.1-SNAPSHOT.jar

Elasticsearch server

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list
apt-get update
apt-get install elasticsearch
service elasticsearch start

Logstash server

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
apt-get install logstash
vi /etc/logstash/conf.d/elkr.conf
//μ•„λž˜ μ½”λ“œλ₯Ό elkr.conf에 μž…λ ₯
input {
    tcp {
        port => 4560
        codec => json_lines
    }
}
output {
    elasticsearch {
        hosts => ["localhost:9200"]    
        index => "logstash-%{+YYYY.MM.dd}"
    }
}

service logstash start

μ‹€μ œ 배포 μ„œλ²„λŠ” ELK+redis μ•„ν‚€ν…μ²˜λ‘œ κ΅¬μ„±λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.