stunstunstun / dietxurl

The dietxurl is a kind of shorten URL service by Spring Boot with Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

Install

Build Image

$ docker build -t dietxurl-app .

Load PostgreSQL as locally

$ docker-compose -f docker-compose-pg.yml up -d
...
Creating network "dietxurl_default" with the default driver
Creating volume "dietxurl_dietxurl_local_db" with default driver
Creating dietxurl_db_1 ... done

Run

$ docker run --rm -p 8080:8080 dietxurl-app

Integration Testing

$ curl -d '{"firstName":"sawol", "lastName":"jung"}' \
-H "Content-Type: application/json" \
-X POST http://localhost:8080/api/v1/customers

Deploy

$ docker build --build-arg ENVIRONMENT=prod -t dietxurl-app-prod:0.0.1 .
$ docker run --rm -p 8080:8080 dietxurl-app-prod:0.0.1

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you:

About

The dietxurl is a kind of shorten URL service by Spring Boot with Kotlin


Languages

Language:Kotlin 92.2%Language:Dockerfile 4.5%Language:Shell 3.3%