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: 5 months ago
JSON representation
Based on windward, Build your short url service. In addition, It's an awesome practice for windward
- Host: GitHub
- URL: https://github.com/esotericman/short-url
- Owner: esotericman
- License: apache-2.0
- Created: 2023-08-13T03:56:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T12:14:35.000Z (8 months ago)
- Last Synced: 2024-12-15T11:33:35.044Z (5 months ago)
- Topics: graalvm, java, short-url, windward
- Language: Java
- Homepage:
- Size: 240 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# short-url

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
```