This proyect's objective is to help people better keep track of the different diseases they may have. We mainly take into account any kind of hearth disease and diabetes.
-
You need to install Docker Desktop, to do that go to: https://www.docker.com/products/docker-desktop, create an account and download the software, once it's downloaded install Docker Desktop with the default configuration. Note: to download Docker Desktop you need to create an account with Docker.
-
Clone this repository into your local machine
$ git clone git@github.com:ProyectoIntegrador2018/dr_movil.git
- AWS access and secret key.
- Fire up a terminal, navigate to the cloned git repo and run:
$ docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C******* aws-sandbox
- (Optional) To make sure you created the instance correctly and it's active, run:
$ docker-machine ls -t "30"
Should look something like this:
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
aws-sandbox * amazonec2 Running tcp://52.90.113.128:2376 v1.10.0
- Once the ec2 instance has been created on AWS run:
$ docker-compose -f docker-compose.prod.yml up -d --build
Then:
% rails db:create
Followed by:
% rails db:migrate