스프링부트 basic 위클리미션을 코드리뷰하는 Repository입니다.
To run this project, you will need to add the following environment variables to
your src/main/resources/application.yml file
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: YOUR_DATABASE_URL
username: YOUR_DB_USER_NAME
password: YOUR_DB_PASSWORDCreate image from Dockerfile
$ docker build -t <IMAGE_NAME> ./src/main/resourcesTo create container, run the following command
$ docker run --name <CONTAINER_NAME> -e MYSQL_ROOT_PASSWORD=<PASSWORD> -d -p 3306:3306 <IMAGE_NAME>To Create database, use schema.sql from scr/main/resources/
To run tests you will need to add the following environment variables to your scr/test/resources/application.yml file
url: YOUR_DATABASE_URL
username: YOUR_DB_USER_NAME
password: YOUR_DB_PASSWORD
To run tests, run the following command
$ gradle testClone the project branch ASak1104/week3
$ git clone -b ASak1104/week3 https://github.com/ASak1104/voucher-management-system.gitGo to the project directory
$ cd voucher-management-systemAdd environment Variables in application.yml
scr/main/resources/application.yml
scr/test/resources/application.yml
Build project
$ ./gradlew buildTo run application, run the following command
$ ./gradlew run --console=plain