mvn install -DskipTests
java -jar target/donation-0.0.1-SNAPSHOT.jar
docker build -t kpay/donation .
docker run -p 9001:9001 -t kpay/donation -e "SPRING_PROFILES_ACTIVE=test"
mvn clean package -Pdocker
docker-compose up
Appendix A.
Guide for using endpoint the app:
Go to http://localhost:9001/api to test and would specify basic authorization a username: user
and password: user
or username: admin
and password: admin
- POST request to
/api/create/
; - PUT request to
/api/take/:token
; - GET request to
/api/find/:token
;".
or use Swagger API http://localhost:9001/swagger-ui.html
and generation API docks http://localhost:9001/v3/api-docs.yaml
3. Docker control commands *
docker images
- running containers:
docker ps
4. End stop app
- Stop containers:
docker-compose down
- Remove old stopped containers of docker-compose
docker-compose rm -f
see documentation [카카오페이 공채 server 개발 과제](./카카오페이 공채 server 개발 과제.pdf)