Skip to content

Ejemplo como ayudantía para Proyecto Especialidad 2016-2

Notifications You must be signed in to change notification settings

lopezjurip/entorno-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entorno React.js

Check the Google Slides here

preview

Project parts:

Setup for deployment

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

About

Ejemplo como ayudantía para Proyecto Especialidad 2016-2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published