GithubHelp home page GithubHelp logo

demo's Introduction

더파이러츠 백엔드 개발자 채용 과제

설치 및 환경설정 가이드

  1. H2 Datebase
  2. Spring-boot v2.4 ,Java 11
  3. JPA ,Lombok
  4. PostMan

테이블 생성 SQL

  1. create table business_times (id bigint generated by default as identity, close varchar(255), day varchar(255), open varchar(255), primary key (id));
  2. create table store (id bigint generated by default as identity, address varchar(255), description varchar(255), holidays binary(255), level bigint not null, name varchar(255), owner varchar(255), phone varchar(255), primary key (id))
  3. create table store_business_times (store_id bigint not null, business_times_id bigint not null)
  4. alter table store_business_times add constraint FK362oex789lon0cwlbkqq1nq06 foreign key (business_times_id) references business_times
  5. alter table store_business_times add constraint FK4nok2p8sxbnhc180b23f0gesj foreign key (store_id) references store
  6. JPA H2 서버 시작 하면 자동생성 서버 종료시 테이블 삭제됨

API 사용 가이드

H2 JDBC URL: jdbc:h2:tcp://localhost/~/test 설정 후 H2 서버 시작

PostMan -> URL http://localhost:8080/storesave POST 호출

스크린샷 2021-01-21 오후 4 16 00

스크린샷 2021-01-21 오후 4 19 34

PostMan -> URL http://localhost:8080/holidayssave PUT 호출

스크린샷 2021-01-21 오후 4 20 49

PostMan -> URL http://localhost:8080/list GET 호출

스크린샷 2021-01-21 오후 4 23 13

PostMan -> URL http://localhost:8080/listdetail/1 GET 호출

스크린샷 2021-01-21 오후 4 24 34

PostMan -> URL http://localhost:8080/delete/1 DELERE 호출

스크린샷 2021-01-21 오후 4 25 08


demo's People

Contributors

donggada 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.