The following guide runs you through getting the application set up and working with the application in development.
Running the project locally requires a few dependencies.
Ruby version 3.2+ is required. We include a .ruby-version
file in the root of the project so if you are using a version manager like rvm or rbenv it should pick this up.
Node 20+ is required. We include a .nvmrc
file in the root of the project so if you are using nvm it should pick this up.
The project uses yarn
. Recent versions of node include a tool called corepack
which includes yarn. You can enable yarn on your system by running the following:
corepack enable
All example commands should be run from the root of the project directory once you have installed the pre-requisites above.
Running the following from the root of the project will install all ruby and client-side dependencies. This can be run at any time.
./bin/setup
When running the specs for the first time you may need to pre-compile assets using:
./bin/rails assets:precompile
A good way to quickly check that the local setup is working correctly is to run the specs. This can be done with:
./bin/rails spec
You can run the application along with asset compilation using the following dev script:
./bin/dev
If all is working you should be able to access the application at http://localhost:3000/