Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simplydemo/spring-lotto-router-handler
spring-lotto-service
https://github.com/simplydemo/spring-lotto-router-handler
docker kotlin maven spring-webflux-functional webflux-test
Last synced: 6 days ago
JSON representation
spring-lotto-service
- Host: GitHub
- URL: https://github.com/simplydemo/spring-lotto-router-handler
- Owner: simplydemo
- Created: 2022-05-26T17:01:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-30T16:58:39.000Z (over 2 years ago)
- Last Synced: 2024-11-08T04:33:04.479Z (about 2 months ago)
- Topics: docker, kotlin, maven, spring-webflux-functional, webflux-test
- Language: Kotlin
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-lotto-router-handler
## Git
```
git clone https://github.com/chiwoo-samples/spring-lotto-router-handler.gitcd spring-lotto-router-handler
git config --local user.name
git config --local user.email
git config --local --list
```## Build
```
mvn clean package -DskipTests=true
```## Run
```
mvn -DskipTests=true spring-boot:run
```## Run with jar
```
java -jar target/lotto-service.jar
```## Build Image
```
docker build -t "symplesims/lotto-service:0.0.1" -f ./docker/Dockerfile .
```## Run Docker Container
```
docker run -d --name lotto-service --publish "0.0.0.0:8080:8080" symplesims/lotto-service:0.0.1
```## Appendix
### check with cURL
```
curl --location -X GET 'http://localhost:8080/api/lotto/lucky' -H 'Content-Type: application/json'
```