mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-11 16:01:56 +00:00
1.0 KiB
1.0 KiB
- I have two ways to run rails commands in the repo. Either use rvm with
rvm use 4.0.1; rvm gemset use wrestlingdev;or use docker withdocker run -it -v $(pwd):/rails wrestlingdev-dev <rails command>- If the docker image doesn't exist, use the build command:
docker build -t wrestlingdev-dev -f deploy/rails-dev-Dockerfile . - If the Gemfile changes, you need to rebuild the docker image:
docker build -t wrestlingdev-dev -f deploy/rails-dev-Dockerfile .
- If the docker image doesn't exist, use the build command:
- Do not add unnecessary comments to the code where you remove things.
- Write as little code as possible. I do not want crazy non standard rails implementations.
- This project is using propshaft and importmap.
- Stimulus is used for javascript.
- Cypress tests are created for js tests. They can be found in cypress-tests/cypress
- Cypress tests can be run with docker: bash cypress-tests/run-cypress-tests.sh
- javascript tests are through vitest. See
vitest.config.js. Runnpm run test:js - importmap pins in
importmap.rband aliases invitest.config.jsneed to match.