https://github.com/yeukfei02/ecommerce-api-spring
ecommerce-api-spring
https://github.com/yeukfei02/ecommerce-api-spring
docker java kotlin postgres spring
Last synced: 2 months ago
JSON representation
ecommerce-api-spring
- Host: GitHub
- URL: https://github.com/yeukfei02/ecommerce-api-spring
- Owner: yeukfei02
- License: mit
- Created: 2022-07-21T02:46:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:22:16.000Z (over 2 years ago)
- Last Synced: 2025-01-11T01:27:18.867Z (over 1 year ago)
- Topics: docker, java, kotlin, postgres, spring
- Language: Kotlin
- Homepage:
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ecommerce-api-spring
ecommerce-api-spring
documentation:
## Requirement
- install java (v11+)
## Testing and run
```zsh
// show gradle all tasks
$ ./gradlew tasks --all
// build jar
$ ./gradlew build
// run jar
$ java -jar build/libs/ecommerce-api-spring-1.0.0.jar
// start project
- run EcommerceApiSpringApplication.kt
// db migrate info
$ ./gradlew flywayInfo
// db migrate
$ ./gradlew flywayMigrate
// check code style
$ ./gradlew ktlintCheck
// format code
$ ./gradlew ktlintFormat
// run test case
$ ./gradlew test
```
open project in intellij idea
open localhost:8080
## Docker
```zsh
// build images and start container in one line
docker-compose up -d --build
// go inside container
docker exec -it /bin/bash
// check container logs
docker logs
// remove and stop container
docker-compose down
```
open localhost:8080