도서를 구매할 수 있는 온라인 쇼핑몰 서비스.
./gradlew asciidoctor
open buybook-api/build/docs/asciidoc/index.html
./gradlew bootJar
java -jar buybook-api/build/libs/buybook-api-*.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_DATABASE=buybook \
DB_USERNAME=root \
DB_PASSWORD=password \
java -jar buybook-api/build/libs/buybook-api-*.jar
./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
git push heroku main
heroku logs --tail
https://codesoom-project.github.io/buybook-project/
상품 목록 조회:
http GET http://localhost/products
상품 상세 정보 조회:
http GET https://localhost/products/{id}