This TodoMVC application written with Ruby on Rails 7.1 is used as a learning tool in the context of the Master of Advanced Studies in Rapid Application Development (MAS-RAD) in the CAS-DAS Frameworks module.
docker volume create ruby-bundle-cache
- Add the following alias to your shell configuration file (e.g.
~/.bashrc
or~/.zshrc
), then reload your terminal.
alias docked='docker run --rm -it -v ${PWD}:/rails -v ruby-bundle-cache:/bundle -p 3000:3000 ghcr.io/mas-rad/rails-cli-firefox-esr:latest'
- Fork the mas-rad/todomvc-rails-2023 repository to your own GitHub account and clone it locally.
- From within the cloned repo folder, use your terminal to ensure that
git remote -v
includes both anorigin
remote pointing to your fork and anupstream
remote pointing tomas-rad/todomvc-rails-2023
. If theupstream
remote is missing, add it withgit remote add upstream https://github.com/mas-rad/todomvc-rails-2023.git
. - Install the Ruby gem dependencies with
docked bundle
. - Finally, run the DB migration with
docked rails db:migrate
. - You are ready! 🎉 You can now run
docked COMMAND
to execute commands in the Rails container. For example,docked rails server
will start the Rails server (http://0.0.0.0:3000) anddocked rails test:all
will run the whole test suite.
- Update your
upstream
remote with:git fetch upstream
- Optional, list available remote branch with:
git branch --remote
- Create a new
exercise-XX
branch from the remote branch withgit checkout -b exercise-XX upstream/exercise-XX
- Do the exercise and ensure that all tests are green with
docked rails test:all
. - Commit your changes.
- Push your
exercise-XX
branch to yourorigin
with:git push origin
. - Visit mas-rad/todomvc-rails-2023 and open a pull request.