Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeukfei02/ecommerce-api-spring

ecommerce-api-spring
https://github.com/yeukfei02/ecommerce-api-spring

docker java kotlin postgres spring

Last synced: 6 days ago
JSON representation

ecommerce-api-spring

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