Skip to content

baleinesurseine/shortener

Repository files navigation

URL Shortener

What is shortener ?

Shortener is a simple, experimental, url shortener. It was built with node.js, express.js and mongoDB.

How to use this image ?

start a mongodb image

docker run --name some-mongo -d mongo

start a shortener image

docker run --name some-shortener --link some-mongo:mongo -p 80:8000 -d baleinesurseine/shortener

This image includes expose 8000.

configuration options

-e "DB=db: sets the database name (default is 'url_shortener') -e "WEBHOST=host": sets the web host url (default is 'http://localhost/')

reset database contents

docker exec <instance-name> node reset.js

About

URL shortener

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published