The TEI Archiving, Publishing, and Access Service (TAPAS) web application.
- Archived pre-2025 version
Before setting up the application, ensure you have the following installed:
- Ruby 4.0.0 (see
.ruby-version) - MySQL 8.0 or higher
- Bundler gem
- ImageMagick (for image processing)
- Solr 8.11.2(for search functionality)
- Node.js and npm (for asset compilation)
git clone https://github.com/NEU-DSG/TAPAS.git
cd TAPASbundle installCopy the example environment file and update with your configuration:
cp .env.example .envThen edit .env with your MySQL credentials and other configuration as needed.
Ensure MySQL is running, then create the databases:
# Start MySQL service (macOS)
brew services start mysql
# Start MySQL service (Linux)
sudo systemctl start mysqlThe setup script will install dependencies, create and migrate the database:
bin/setupThis script will:
- Install all gem dependencies
- Create and migrate the database
- Clear logs and temp files
- Start the development server
To run the application with all services (web server + asset compilation):
bin/devThis will start:
- Rails server on
http://localhost:3000 - Dart Sass watcher for CSS compilation
Alternatively, you can run the Rails server alone:
bin/rails serverStart Solr for search functionality:
# Start Solr
solr start
# Create a Solr core for TAPAS (adjust core name as needed)
solr create -c tapas_development# Run all tests
bundle exec rspec
# Run specific test file
bundle exec rspec spec/path/to/test_spec.rb# Run RuboCop linter
bin/rubocop
# Check for security vulnerabilities
bin/bundler-audit
bin/brakeman- Verify MySQL is running:
mysql.server status(macOS) orsudo systemctl status mysql(Linux) - Check your
.envfile has correctMYSQL_USERandMYSQL_PASSWORD - Verify the socket path in
config/database.ymlmatches your MySQL installation
- Make sure Node.js and npm are installed
- Try clearing precompiled assets:
bin/rails assets:clobber
- Verify ImageMagick is installed:
convert --version - On macOS, you may need to reinstall:
brew reinstall imagemagick