- 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
- For running Solr, you have two options:
- Option 1: Run
docker compose up
to start the solr server and then runbundle exec rake acfa:seed
to seed the solr server with sample data. - Option 2: Run
bundle exec rake acfa:server
to start up solr, seed it with example data, and start rails.
- Option 1: Run