Giter Site home page Giter Site logo

cm-voting's Introduction

Welcome to Codemotion voting webapp !

This aplication is built with Revel Web framework, the Golang webframework.

Install docker and run the app with the provided image.

Install and run Mongodb in a Docker Container

docker pull mongo

docker run -i -t --name mongo_cmvoting -p 27017:27017 mongo

To check if this is working go to the database console

mongo --host 192.168.99.100 (or localhost if you are not on using like me a docker-machine)`

Install and run the web app in a Docker Container

  • Clone this project

  • Build the docker image from the cm-voting directory cloned from Github

cd cm-voting

docker build -t karesti/cm_voting .
  • Run the docker image linking the already running MongoDB container
docker run -i -t -p 9000:9000 --link mongo_cmvoting:mongo karesti/cm_voting

If you are lazy :) you can execute buildAndRun.sh which will execute build image and run

./buildAndRun.sh

Or with docker-compose :

docker-compose up
  • Check if it works !
http://localhost:9000/

If you are running on mac like me, you might be using Docker-Machine. Instead of using localhost, you must use the IP of your host which can be retrieved via :

docker-machine ls
perso    *        virtualbox   Running   tcp://192.168.99.100:2376

In my case http://192.168.99.100:9000/

cm-voting's People

Contributors

jawher avatar jmateo avatar karesti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.