Skip to content

nusuy/Echo-Chamber_BackEnd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 

Repository files navigation

ECHO-CHAMBER :: SERVER

Built With


Getting Started

1. Get API Key and Client ID

애플리케이션에 필요한 API Key 생성


2. Download repository

파일 다운로드

git clone https://github.com/SWU-ECHO-CHAMBER/BackEnd.git

3. Create application.yml at /BackEnd/echo/src/main/resources

/BackEnd/echo/src/main/resourcesapplication.yml 파일 생성

# PORT
server:
  port: 8080

# JPA
spring:
  devtools:
    livereload:
      enabled: true
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: ${SPRING_DATASOURCE_URL}
    username: root
    password: ${SPRING_DATASOURCE_PASSWORD}
  jpa:
    database: mysql
    database-platform: org.hibernate.dialect.MySQL8Dialect
    show-sql: true
    hibernate:
      ddl-auto: update
    properties:
      hibernate:
        format_sql: true
  cache:
    type: redis
    redis:
      host: localhost
      port: 6379
  servlet:
    multipart:
      max-file-size: 10MB
      max-request-size: 10MB

4. Create application.properties at /BackEnd/echo/src/main/resources

/BackEnd/echo/src/main/resourcesapplication.properties 파일 생성

# Database
SPRING_DATASOURCE_URL=jdbc:mysql://localhost:3306/{YOUR_DATABASE_NAME}
SPRING_DATASOURCE_PASSWORD={YOUR_MYSQL_PASSWORD}
PROFILE_DATABASE_URL={PATH_TO_SAVE_IMAGES}

# JWT
JWT_SECRET_KEY=jwt_secret_key_sample

# OAuth
GOOGLE_OAUTH_CLIENT_ID={YOUR_GOOGLE_OAUTH_CLIENT_ID}

# News API
NEWS_API_KEY={YOUR_NEWS_API_KEY}

5. Run the application

애플리케이션 실행


Contact

Server Developer - [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%