Coder Social home page Coder Social logo

triple-backend's Introduction

triple-backend

MYSQL에서 Triple.sql 내용을 실행하기.
import의 경우 간혹 가다가, AUTO_INCREMENT 값이 적용 안되는 현상이 있으나, 직접 실행의 경우 문제가 없습니다.

application.properties 파일에서
spring.datasource.url=jdbc:mysql://[아이피]:[포트]/[스키마]?useUnicode=yes&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Seoul
spring.datasource.username=[MYSQL아이디]
spring.datasource.password=[MYSQL비밀번호]
변경하기.

EX)

  1. 특정 회원 포인트 조회하기.
    http://localhost:8080/points?userId=nipa0711
    /points? 뒤에 쿼리 스트링으로 userId=아이디 입력

  2. 특정 회원 포인트 기록 조회하기.
    http://localhost:8080/history?userId=nipa0711
    /history? 뒤에 쿼리 스트링으로 userId=아이디 입력

  3. 리뷰 입력하기.


POST /events
{
    "type": "REVIEW",
    "action": "ADD", /* "MOD", "DELETE" */
    "reviewId": "240a0658-dc5f-4878-9381-ebb7b2667772",
    "content": "좋아요!",
    "attachedPhotoIds": ["e4d1a64e-a531-46de-88d0-ff0ed70c0bb8", "afb0cef2-851d-4a50-bb07-9cc15cbdc332"],
    "userId": "3ede0ef2-92b7-4817-a5f3-0c575361f745",
    "placeId": "2e4baf1c-5acb-4efb-a1af-eddada31b00f"
}



DB 구조

triple-backend's People

Contributors

nipa0711 avatar

Watchers

 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.