Skip to content

basic url shortener (for a job interview) made with scala, cassandra and the spray framework

License

Notifications You must be signed in to change notification settings

jgpacker/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a2d0045 · Apr 18, 2015

History

2 Commits
Apr 18, 2015
Apr 18, 2015
Apr 18, 2015
Apr 18, 2015
Apr 18, 2015
Apr 18, 2015

Repository files navigation

URL shortener

  1. Install and execute Cassandra (tested with version 2.0)

  2. Launch CQL shell and create the necessary Keyspace and Table:

     $ cqlsh
     > CREATE KEYSPACE url WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
     > USE url;
     > CREATE TABLE urltable (id text PRIMARY KEY,  longUrl text);
     > exit
    
  3. Install and then launch SBT:

     $ sbt
    
  4. Compile everything and run all tests:

     > test
    
  5. Start the application:

     > re-start
    
  6. Make the web service requests at http://localhost:8080 (configurable in the file Boot.scala)

  7. Stop the application:

     > re-stop
    

About

basic url shortener (for a job interview) made with scala, cassandra and the spray framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages