Skip to content

huarngpa/microservices-flask-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservices - Docker, Flask, React

Build Status

Part 1: Docker and Flask

Docker and Docker-Compose Commands

docker-compose -f docker-compose-dev.yml up -d --build # when new deps
docker-compose -f docker-compose-prod.yml up -d # should auto-update?
docker-compose -f docker-compose-dev.yml down
docker-compose -f docker-compose-dev.yml exec users python manage.py test
docker-compose -f docker-compose-dev.yml exec users python manage.py shell
docker-compose -f docker-compose-dev.yml exec users python manage.py recreate_db
docker-compose -f docker-compose-dev.yml exec users python manage.py seed_db
docker-compose -f docker-compose-dev.yml exec users-db psql -U postgres
docker image rm $(docker images -f "dangling=true" -q)
docker-compose -f docker-compose-prod.yml exec users env

IAM

IAM sign-in

Docker-Machine Commands

docker-machine ls # list machines
docker-machine create --driver amazonec2 testdriven-prod
docker-machine env testdriven-prod
docker-machine ssh testdriven-prod
eval $(docker-machine env testdriven-prod) # change to target machine
eval $(docker-machine env --unset) # reverts
docker info # which machine
docker-machine ip testdriven-prod

Part 2: Code Coverage and React

Docker and Docker-Compose Commands

docker-compose -f docker-compose-dev.yml exec users python manage.py cov
docker-compose -f docker-compose-dev.yml exec users flake8 project

React Commands

npm start
npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published