Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/camathieu/shorticle
Awesome vert.x powered url shortner
https://github.com/camathieu/shorticle
Last synced: about 1 month ago
JSON representation
Awesome vert.x powered url shortner
- Host: GitHub
- URL: https://github.com/camathieu/shorticle
- Owner: camathieu
- Created: 2014-09-09T21:48:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-10T22:22:33.000Z (about 10 years ago)
- Last Synced: 2024-04-17T16:18:52.383Z (7 months ago)
- Language: Java
- Homepage: http://x26.eu
- Size: 1.88 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Vert.x url shortner
===================Live running at http://x26.eu
Backed up by redis if provided in the json.config else default to sharedMap ( no persistence ).
Configuration
-------------Edit or provide config.json file.
```
{
"host" : "localhost", // interface to listen to
"port" : 2688, // port to listen to
"domain" : "http://localhost:2688", // base domain
"startLen" : 2, // base length for string generation
"tries" : 900, // minimum successive fail tries before increasing length
"redis" : "localhost" // redis server address ( optional )
"hashkey" : "shorticle.url_store", // redis / vert.x hash key ( optional )
}
```Run
---Building a fatJar including all dependencies.
```
mvn clean package
mvn vertx:fatJar
java -jar target/shorticle-1.0-fat.jar -conf config.json
```Running right from maven cli
```
mvn clean package
mvn vertx:runMod
```Api
===Status 200 is OK
```
curl -X POST -d 'url=http://foo.bar' http://127.0.0.1:2688
{"status":200,"value":"http://localhost:2688/ix"}
```