- Flask (Python)
- React (Javascript)
- Docker
- Docker-machine
- Amazon AWS EC2
- Point environment to local
eval $(docker-machine env -u)
export REACT_APP_HERO_SERVICE_URL=localhost
export REACT_APP_HERO_SERVICE_URL=localhost
- Build and run container in background
make docker-build-up-dev
- Follow steps from https://docs.docker.com/machine/examples/aws/ to:
- Sign up for AWS and configure credentials
- Use Machine to create the instance
- Log into aws docker-machine instance
eval $(docker-machine env dota)
export REACT_APP_HERO_SERVICE_URL=[ip address of amazon docker-machine instance]
docker-machine ip [docker-machine name]
- Build and run container in background
make docker-build-up-dev
- Run Initial scripts Available scripts:
- seed_db (will fetch hero and match data from opendota api)
- test (run tests)
- combo (calculate team all combinations)
- win_rates (calculate win rates for combinations)
docker-compose -f docker-compose-prod.yml exec [container name] python manage.py [cli]
- Log off
eval $(docker-machine env -u)