Giter VIP home page Giter VIP logo

mileage-service-api's Introduction

마일리지 서비스 개발(22.07.02 ~ 22.07.09)

1️⃣ 애플리케이션 실행 방법

1) 레포지토리를 clone 받아주세요.

2) clone 받은 프로젝트를 열고 build 해주세요.

$ ./gradlew build

(아래 경로에 jar 파일이 생깁니다.)

image

3) build/libs/ 위치로 이동한 뒤, 만들어진 jar 파일을 실행해주세요.

$ cd build/libs/
$ java -jar backend-0.0.1-SNAPSHOT.jar

4) 정상적으로 실행된다면 아래와 같은 문구가 보일 겁니다.☺

image


2️⃣ API 명세 확인 방법

애플리케이션 실행 후, http://localhost:8080/docs/api-docs.html 에 접속하시면 API 명세를 확인하실 수 있습니다(Spring Rest Docs 적용).

image

mileage-service-api's People

Contributors

sewonk avatar

Watchers

 avatar

mileage-service-api's Issues

[Feat] Point, PointHistory, User Service 구성

(하나의 Transaction으로 구성)

  • 포인트 계산 -> 다형성을 위해 Factory Pattern 적용, ActionFactory 만듦, Action 별 Service 존재
  • Point History 쌓기
  • 유저 보유 포인트 갱신

[Feat] 엔티티, enum 구성

[Feat] 엔티티, enum 구성

엔티티 구성

  • Review (리뷰 테이블)
  • Photo (Review : Photo = 1 : N 구조로 저장되어야 함)
  • User (유저 테이블)
  • PointHistory (포인트 이력 관리 테이블, insert만 존재하도록 이력 관리)

enum 구성

  • ActionType (Add, Mod, Delete)
  • PointType (Plus, Minus)
  • PointDetails (Text, Photo, Bonus, Delete)
  • StatusCode (에러 및 상태코드 관리)

[Feat] DTO 구성

  • Response DTO : Status, Code, Message 담을 수 있도록 구성
  • Request DTO : 형식에 맞게 데이터 받을 수 있는 DTO 구성
  • Error Response DTO : Error handling dto
  • Point Response DTO : User 별 point 확인 리스폰스

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.