GitXplorerGitXplorer
t

url-shortener

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
b135a03462ef293d95530aa5d91bbd2ba2b08a5f

Fixed README.markdown

committed 9 years ago
Unverified
a5dbbca850314138f0982f3003fcf1c07b15dac9

Fixed .gitignore

committed 9 years ago
Unverified
f8b8b624fa3e5ed57eae2201ea42efec818eb44d

First commit

committed 9 years ago
Unverified
a7d7efad60d40149fcb553d761704649d7d9806c

First commit

committed 9 years ago
Unverified
e1b06159f15fcb66f120854aca5ef4112984291d

Initial commit

ttioback committed 9 years ago

README

The README file for this repository.

Chaordic Coding Challenge - URLShortener - Renato Back

This projects provides web service that allows users to either shorten a URL or retrieve the stretched version of a shortened one.

Follow these steps to get started:

  1. Git-clone this repository.

     $ git clone git://github.com/tioback/url-shortener.git url-shortener
    
  2. Change directory into your clone:

     $ cd url-shortener
    
  3. Launch SBT:

     $ sbt
    
  4. Compile everything and run all tests:

     > test
    
  5. Start the application:

     > re-start
    
  6. Use a REST Client to use the system through http://localhost:8080

  7. To shorten, do a POST request to http://localhost:8080/encurte/url and with a json:

    { "longUrl": "http://www.chaordic.com” }

  8. To stretch, do a GET request to http://localhost:8080/url?shortUrl=http://chrdc.co/a

  9. Stop the application:

     > re-stop