Skip to content

chrisPiemonte/go-shorty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go shorty

docker AngularJS spark redis

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.


Installation

Linux:

  1. Install docker, docker-compose and git

  2. Clone this repo:

    git clone https://github.com/GruppoPBDMNG-4/go-shorty.git 
    cd go-shorty/

  3. Run:

    docker-compose -p gruppo4 up -d

Windows

  1. Start boot2docker or a Docker Host

    boot2docker start
    boot2docker ssh
  2. Clone this repo

    git clone https://github.com/GruppoPBDMNG-4/go-shorty.git
    cd go-shorty/

  3. Build the image

    docker build -t gruppo4/goshorty .

  4. 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

  5. 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

Utilization

Open a web browser and go to

http://localhost:4567

Releases

No releases published

Packages

No packages published

Languages

  • Java 56.3%
  • JavaScript 28.2%
  • HTML 13.8%
  • CSS 1.7%