https://github.com/andreapavoni/goshort
a simple URL shortener built with Go
https://github.com/andreapavoni/goshort
Last synced: 9 months ago
JSON representation
a simple URL shortener built with Go
- Host: GitHub
- URL: https://github.com/andreapavoni/goshort
- Owner: andreapavoni
- License: mit
- Created: 2013-05-03T08:51:53.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-01-03T10:09:55.000Z (over 12 years ago)
- Last Synced: 2025-10-09T07:03:11.863Z (9 months ago)
- Language: CSS
- Size: 1.63 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoShort
An experiment to make a simple web app using [Go](http://golang.org) and [Redis](http://redis.io)
## Installation
You'll need a working installation of Redis and Go, then:
* ```go get github.com/pilu/traffic```
* ```go get github.com/apeacox/goshort```
* ```cd $GOPATH/src/github.com/apeacox/goshort```
* ```go build```
* start a Redis server
* ```./goshort```
* point your browser to http://0.0.0.0:8080
### Command line options:
GoShort accepts the following command line options:
* ```-host ```: hostname to listen (default ```0.0.0.0```)
* ```-p ```: port to listen (default ```8080```)
* ```-redis ``` specify Redis connection URL (default: ```redis://localhost:6379/```)
These are especially useful for deploying in production, check the [Procfile](https://github.com/apeacox/goshort/blob/master/Procfile) to see how it's used on Heroku.
## Demo
There's a working demo on Heroku: http://goshort.herokuapp.com
## Contributing
1. Fork it!
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
### Testing ?
I'm still figuring out how to write them :-P
## License
Copyright (c) 2013 Andrea Pavoni http://andreapavoni.com