Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/esotericman/short-url
- Owner: esotericman
- License: apache-2.0
- Created: 2023-08-13T03:56:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-17T14:32:58.000Z (5 months ago)
- Last Synced: 2024-06-17T16:20:03.845Z (5 months ago)
- Topics: graalvm, java, short-url, windward
- Language: Java
- Homepage:
- Size: 234 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```