Very early prototype for an URL shortener service using Node.js, Docker and Redis
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
public/stylesheets
redis
routes
transform
views
.bowerrc
.dockerignore
.editorconfig
.gitignore
.jshintrc
.travis.yml
CODE_OF_CONDUCT.md
Docker.md
Dockerfile
LICENSE.txt
README.md
app.js
bower.json
docker_nodes.md
package.json

README.md

URL Shortener

Greenkeeper badge Build Status Dependency Status devDependency Status Codacy Badge

This project implements an URL shortener service, like Bitly or goo.gl. This is just some technical playground for testing Node.JS, Docker and Redis.

Requirements

The following software must be installed:

  • Bower
  • Node.js
  • (optionally Docker and Redis)

Installation

Fork the repository and install the dependencies

bower install
npm install

Usage

Start the application by executing from the main directory

npm start

Then open the following URL in your browser: http://localhost:3000/

Docker

If you want to run it from a Docker container then a Dockerfile configuration file is included.

Please review Docker.md for more information.

Redis Service

You must configure your Redis host and port in transform/URLStore.js. You can also start your own Redis service in a Docker container using redis/Dockerfile.

Then enable Redis support in routes/transform.js.

License

MIT License, see LICENSE.txt for more details.