NEU-DSG / tapas_rails

Hydra Head for the TAPAS project
1 stars 6 forks source link

file handling: core files, html, and image files #92

Open candyhazlett opened 6 months ago

candyhazlett commented 6 months ago

task

refactor database table structure and associations for user-provided records within a collection. proposed new structure, outlined below after discussion with data engineer Joel, will do the following:

proposed structural refactor

amclark42 commented 1 week ago

I keep getting stuck in the "System Dependencies" section. There isn't enough detail to walk a novice through set-up, and pretty much all of the linked sites are either lacking documentation, or full of gotchas. 😣 I've done this in the past, but even with my fuzzy memories it's been frustrating.

Here's what I got so far, for a MacOS installation. I used Homebrew as my package manager.

  1. Start in the tapas_rails directory.
  2. Install Ruby Version Manager (RVM)
  3. Install Xcode from the Mac App Store a. Install the Command Line Tools package with xcode-select --install
  4. Install or make sure the automake package is installed (with Homebrew)
  5. Install or make sure the openssl@3 (v3.4.0) package is installed (with Homebrew)
  6. Install Ruby v2.7.7 a. Figure out where openssl was installed with which openssl b. Try RVM's default install, rvm install ruby-2.7.7 (or the shorthand rvm install 2.7.7) c. If the installation failed because the ruby source couldn't be compiled, provide the OpenSSL path: rvm install ruby-2.7.7 -C --with-openssl-dir='/opt/homebrew/bin/openssl'
  7. Install Rails v5.2.6: gem install rails -v 5.2.6
  8. Install or make sure the mysql package is installed (with Homebrew) a. If on a fresh install, run brew services start mysql b. If on a fresh install, configure the root password with mysql_secure_installation c. I don't think I'm done with this step because...
  9. Install gems needed for TAPAS Rails: bundle install a. This fails on the mysql2 gem.

I remember that the mysql2 gem is really tricky to set up (see the old dev installation notes), and I may end up needing to uninstall and reinstall a different version of MySQL to get things working.

I don't have the patience to do that today. I'll come back to this in a day or two.