This is a skeleton rails application for the Job Match Coding Challenge. It is recommended that you use this application as a starting point for your solution. Docker configuration has been provided to make it easy to run the application locally. You don't need to use Docker, but it is recommended to avoid any issues with your local environment.
Ensure is installed Docker to run in a container.
Once Docker is installed on your system, you can use the following commands from the root of the application folder, e.g /var/www/job_match_test
:
docker compose build
docker compose run --rm app bin/setup
docker compose up -d
Open http://localhost:3000/
in your browser.
All gems are installed on building the image, but if you need to install a new gem, you can run:
docker compose run --rm app bundle install
You are welcome to use any test platform, however, Rspec has been installed and configured, and can be run with:
docker compose run --rm app bundle exec rspec
For a single file:
docker compose run --rm app bundle exec rspec filename_spec.rb:line_number
e.g.
docker compose run --rm app bundle exec rspec spec/models/jobseeker_spec.rb:10
docker compose run --rm app /bin/bash
This will spin up a new container and give you a bash session inside that container. From here you can get a rails console, run migrations, run specs, etc.