yurivyatkin / rails-project-65

0 stars 0 forks source link

Initialize and deploy #1

Open yurivyatkin opened 2 months ago

yurivyatkin commented 2 months ago

According to the instructions in Step 1, we need to do the following:

  1. Generate the project: rails new . -j esbuild --css=bootstrap (this defaults to Minitest).
  2. Add slim-rails and slim_lint.
  3. Keep Minitest and have a dummy test.
  4. No system tests (--skip-system-test?) (because I could not make them work in WSL2).
  5. Have Faker and power-assert.
  6. Rubocop and .rubocop.yml from the previous project.
  7. Makefile (see the previous project).
  8. Configure GitHub actions.
  9. Deploy to Render[https://docs.render.com/deploy-rails].
  10. Configure Rollbar[https://docs.rollbar.com/docs/ruby].
  11. Hardcode the initial page as in the reference app with Bootstrap (navigation, main and footer; use placeholder images).

20240601: Here is the revised plan:

yurivyatkin commented 2 months ago

Today, I managed to get the system tests run in a Rails project in my WSL2 system. The solution was to follow the Linux way but rely on the ability of WSL2 in Windows to run native Linux GUI apps (such as google-chrome). The matching versions of google-chrome and chromedriver did the trick.