A basic docker-compose, Rails and React / Webpack starter kit
This product is an application built using multiple technologies such as Docker, Postgresql, Nginx proxy, Ruby on Rails 5 (API only), and React + Redux + Redux Thunk + Reselect. It allows users to run and manage the application easily.
To install the theme, follow these steps:
Create the database and run migrations:
docker-compose run backend rails db:create
docker-compose run backend rails db:migrate
Alternatively, log in via bash and run the commands there:
docker-compose run backend bash
rails db:create
rails db:migrate
exit
If you are using Docker for Mac, set up the directory /Users to be bind mounted into Docker containers:
/Users to the list of shared directoriesRun the application:
docker-compose up
Access the application in your browser at http://localhost:8080
To install new Yarn/NPM packages in the React container, access the bash console for the React container:
docker-compose exec frontend bash
To access the bash console for the Rails app and run rails c:
docker-compose exec backend bash
To create the database:
docker-compose exec backend rails db:create
To run migrations:
docker-compose exec backend rails db:migrate
To stop and remove the application:
docker-compose down -v
To run backend RSpec tests:
docker-compose exec backend rspec
To run Jest (JS) specs:
docker-compose exec frontend yarn test
This product is a multi-technology application that utilizes Docker, Postgresql, Nginx proxy, Ruby on Rails, and React + Redux. It provides an easy installation process and allows for easy management of the application. Users can run the application, perform database operations, access the bash consoles for each component, and run tests. The application architecture is built using Docker Compose, with separate containers for the various services. The Nginx proxy container is responsible for combining the services and exposing ports for access. The product also provides recommended dependency versions for Docker Compose, Docker, and Ruby.