- MySQL
Template configuration files for local development or testing are available
in config/templates
. These files are copied into the config
directory by
spec/spec_helper.rb
, but the resulting YAML files are git-ignored and should
not be committed to the repository.
A generic arclight Solr configuration is provided in solr/conf
. This
configuration can be loaded into a local Solr instance for development or
testing by running the command docker-compose up
. The docker configuration
will create a core called "acfa".
- Install
nvm
(Node Version Manager) if you do not already have it withbrew install nvm
- Follow the instructions from the nvm repo to set up automatic Node version switching
- Open a new terminal window at the repo — this should automatically switch you to run the
node
version specified by.nvmrc
and download it if necessary. - Install yarn with
npm install --global yarn
- Install Javascript dependencies with
yarn install
. - Run the vite server
yarn start:dev
- this will handle asset imports for the app.
- Install Ruby dependencies with
bundle install
. The application Gemfile indicates the required Ruby version. - Run the rspec suite with
bundle exec rspec
- this will set up the default template configurations - Run the database migrations against sqlite in development with
bundle exec rake db:migrate
- To run with a local Solr instance: Run
bundle exec rake acfa:server
- this will bring up solr, seed it with example data, and start rails. To run with the Solr container: runbundle exec rake acfa:seed
then runbundle exec rails s
.