You will need the following dependencies:
npm
node6
bower
java8
maven3
docker
docker-compose
a docker-machine named default
docker env configured (docker-machine start default && eval $(docker-machine env default))
Just run the command:
export DOCKER_MACHINE_IP=$(docker-machine ip) && cd finup-backend && mvn clean install && cd ../finup-frontend/public && bower install --allow-root && cd ../.. && docker-compose up --build
on project root dir.
NOTE: If the application receives error when connecting to the database, wait until the database container is created and then run the command again :(
To signup:
http://$(docker-machine ip default):8081
To survey respond:
http://$(docker-machine ip default):8081/#!/survey?key=57ddba9708813b0001b7ab97
The key param is the subscription id on mongodb
After building and running, just run the following command:
cd finup-backend/integration-tests && mvn test -P integration-tests -Dvrcc.tests.integration.host=http://$(docker-machine ip default)
on project root dir.
To see the application logs access this link:
http://$(docker-machine ip default):9292/index.html#/dashboard/file/logstash.json
The running demo of this code can be seen in this link:
http://ec2-54-187-136-187.us-west-2.compute.amazonaws.com:8081/