Check the Google Slides here
- Rails 5 API: https://github.com/mrpatiwi/entorno-react-api
- Express.js + React.js Frontend: https://github.com/mrpatiwi/entorno-react-web
- React-native Mobile app: https://github.com/mrpatiwi/EntornoReactMobile
Requisites: Docker and Docker-compose
git clone https://github.com/mrpatiwi/entorno-react.git
cd entorno-react
git clone https://github.com/mrpatiwi/entorno-react-web.git
git clone https://github.com/mrpatiwi/entorno-react-api.git
Set:
# Set better strings on real environments
export POSTGRES_PASSWORD=PASSWORD
export SECRET_KEY_BASE=SECRET_KEY_BASE
Run services (see the docker-compose.yml v2 file):
docker-compose run -d
Remember to run the migrations with:
docker-compose exec railsapi rails db:migrate
docker-compose exec railsapi rails db:seed
Scaling web client:
docker-compose scale webclient=2
# Check the logs
# The requests are balanced using round-robin
docker-compose logs --follow webclient