URL shortener service composed of three layers:
-
Client: Single Page Application made using AngularJS
-
Server: Server Side Application exposed over http made using Spark Java
-
NoSQL Database: Redis
Everything runs inside Docker containers.
-
Install docker, docker-compose and git
-
Clone this repo:
git clone https://github.com/GruppoPBDMNG-4/go-shorty.git
cd go-shorty/
-
Run:
docker-compose -p gruppo4 up -d
-
Start boot2docker or a Docker Host
boot2docker start
boot2docker ssh
-
Clone this repo
git clone https://github.com/GruppoPBDMNG-4/go-shorty.git
cd go-shorty/
-
Build the image
docker build -t gruppo4/goshorty .
-
Run the containers
docker run --name gruppo4-dataonly chrispiemo/data-only
docker run -d --name gruppo4-redis --volumes-from gruppo4-dataonly redis:3.0.4 redis-server --appendonly yes
docker run -d --name gruppo4-spark -p 4567:4567 --link gruppo4-redis:db gruppo4/goshorty
-
VirtualBox port forwarding
Name Protocol Host IP Host Port Guest IP Guest Port goshorty TCP 127.0.0.1 4567 0.0.0.0 4567
Open a web browser and go to
http://localhost:4567