If you haven't already, install the homebrew package manager.
Use homebrew to install and run postgresql:
brew install postgresqlbrew services start postgresqlIf you have an older version of postgres, brew postgresql-upgrade-database
For a more GUI focused postgres experience, try Postgres.app an alternative to the CLI focused default postgres
It is often useful to install Ruby with a ruby version manager. The version of Ruby that comes with Mac is not sufficient for this project. You can install rbenv with:
brew install rbenv ruby-buildThen, setup rbenv:
rbenv initAnd finally, follow the setup instructions that are outputted to your terminal after running that.
Next, install the version of Ruby that this project uses. This can be found by checking the file in this repo, .ruby-version.
To install the appropriate ruby version, run:
rbenv install 3.2.2(Do not forget to switch 3.2.2 to the appropriate version)
Finally, run:
rbenv local 3.2.2(Do not forget to swtich 3.2.2 to the appropriate version)
The Casa package frontend leverages several javascript packages managed through yarn, so if you are working on those elements you will want to have node, npm, and yarn installed.
brew install nodebrew install yarn
Many of the frontend tests are run using Google Chrome, so if you don't already have that installed you may wish to include it:
brew install google-chromeInstall gem dependencies with:
bundle installSetup the database with:
bin/rails db:setupInstall javascript dependencies with:
yarn installCompile assets with:
yarn buildand then:
yarn build:cssAnd lastly, run the app with:
bin/rails serverSee the README for login information.