Giter Club home page Giter Club logo

buybook's Introduction

buybook

도서를 구매할 수 있는 온라인 쇼핑몰 서비스.

REST Docs 문서 생성

./gradlew asciidoctor
open buybook-api/build/docs/asciidoc/index.html

로컬에서 Jar 빌드하고 실행하기

./gradlew bootJar
java -jar buybook-api/build/libs/buybook-api-*.jar

MariaDB 사용하도록 Jar 실행

먼저 MariaDB 서버 띄우기.

docker run -d --name buybook-mariadb \
  -p 3306:3306 \
  -e MYSQL_ROOT_PASSWORD=password \
  -e MYSQL_DATABASE=buybook \
  mariadb \
  --character-set-server=utf8mb4 \
  --collation-server=utf8mb4_unicode_ci

docker logs -f buybook-mariadb

환경변수로 DB 정보 전달하면서 실행.

SPRING_PROFILES_ACTIVE=mariadb \
DB_HOST=localhost \
DB_PORT=3306 \
DB_DATABSE=buybook \
DB_USERNAME=root \
DB_PASSWORD=password \
java -jar buybook-api/build/libs/buybook-api-*.jar

Docker 빌드하고 Docker Hub에 올리기

./gradlew clean bootJar

docker build -t buybook ./buybook-api

docker tag buybook bloomspes/buybook

docker push bloomspes/buybook

Docker Hub: https://hub.docker.com/r/bloomspes/buybook

Heroku로 서버 배포

git push heroku main

heroku logs --tail

API 문서

https://codesoom-project.github.io/buybook-project/

HTTPie로 확인

상품 목록 조회:

http GET http://localhost/products

상품 상세 정보 조회:

http GET https://localhost/products/{id}

buybook's People

Contributors

bloomspes avatar

Forkers

bloomspes inseo24

buybook's Issues

어떤 기능을 구현할 것 인가?

신규 온라인 도서 쇼핑몰 서비스를 구축과 관련하여 아래와 같이 논의 사항이 필요한데, 앨리스님 의견은 어떠실까요?

  1. 도서 신간 서적은 어떻게 추가 할 것인가?
  2. 베스트셀러는 기준을 어떻게 잡을 까?
  3. 실시간 랭킹 서비스는 무엇을 기준으로 랭킹을 카운트 할 까?

RIDI 분석

RIDI 서비스 분석

  • 페이지별 컴포넌트 정리
  • 페이지별 사용된 RIDI API 정리
  • Flow Diagram 그리기

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.