Git Product home page Git Product logo

schedule-sharing-backend's Introduction

Schedule Sharing Backend

Schedule Sharing RESTful API based on Spring Boot, JPA Hibernate ORM with MySQL, QueryDSL, Spring HATEOAS, Spring REST DOCS, JWT, AWS EC2

Requirements

  1. Java - OpenJDK 11.x.x
  2. Spring - 2.4.x
  3. MySQL - 8.0.xx
  4. ORM - JPA Hibernate

Steps to Setup

1. Repository 클론

git clone https://github.com/schedule-sharing/schedule-sharing-backend

2. MySQL 데이터베이스 생성

create database schedule_sharing

3. MySQL username과 password 변경

  • src/main/resources/application.yml 파일 생성
spring:
  datasource:
    #    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://localhost:3306/schedule_sharing?useSSL=false&serverTimezone=Asia/Seoul
    username: 
    password:

  jpa:
    hibernate:
      ddl-auto: create
    properties:
      hibernate:
        show_sql: true
        format_sql: true

jwt:
  header: Authorization
  secret: 
  token-validity-in-seconds: 
  • spring.datasource.username and spring.datasource.password 본인의 MySQL 설정에 맞게 변경
  • jwt.secret임의로 만들기

4. Build and Run

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

http://localhost:8080 으로 접속하여 애플리케이션이 실행되는 것을 확인할 수 있습니다.

REST API 보기

REST API 문서를 보고 싶으면 http://localhost:8080/docs/index.html 에서 확인할 수 있습니다. Postman이나 다른 클라이언트를 통해 테스트해볼 수 있습니다.

schedule-sharing-backend's People

Contributors

donup088 avatar inchori avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.