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.
~/.bashrcor~/.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 -vincludes both anoriginremote pointing to your fork and anupstreamremote pointing tomas-rad/todomvc-rails-2023. If theupstreamremote 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 COMMANDto execute commands in the Rails container. For example,docked rails serverwill start the Rails server (http://0.0.0.0:3000) anddocked rails test:allwill run the whole test suite.
- Update your
upstreamremote with:git fetch upstream - Optional, list available remote branch with:
git branch --remote - Create a new
exercise-XXbranch 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-XXbranch to youroriginwith:git push origin. - Visit mas-rad/todomvc-rails-2023 and open a pull request.