Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/esotericman/short-url

Based on windward, Build your short url service. In addition, It's an awesome practice for windward
https://github.com/esotericman/short-url

graalvm java short-url windward

Last synced: about 1 month ago
JSON representation

Based on windward, Build your short url service. In addition, It's an awesome practice for windward

Awesome Lists containing this project

README

        

# short-url

![short-url.png](short-url.png)
In this project, you will know what really does windward can do, and find out how to implement a short url service.
Also , You will learn a different way to Java web application without Spring.
First of all, We must do

```shell
mvn clean compile
```

Then init database with short_url.sql

## API Glance

| relative path | method | querystring | description |
|---------------|--------|-------------|-----------------------------------|
| v1/url | post | originUrl | generate short url for origin url |
| v1/url/list | get | - | select all generated url |
| {url} | get | - | access short url |

build uber-jar

```shell
mvn -Pjar package
```

package binary file

```shell
mvn -Pnative -Dagent exec:exec@java-agent
```

```shell
mvn -Pnative -Dagent package
```

compress binary file

```shell
upx --best ./target/shortUrl
```