Run everything with a single command:
bin/setupThis installs Ruby gems, installs npm packages (for Tailwind), prepares the database, clears temp files, and boots the dev server (pass --skip-server to omit running bin/dev).
To start the app later, simply run:
bin/devForeman will read Procfile.dev and run both the Rails server (web) and Tailwind watcher (css) so everyone has the same workflow.
Configure TMDB (optional)
- Out of the box, the app falls back to the grading key that is already set.
- To override it, set
TMDB_API_KEYin your shell (or.env.local), or add it viabin/rails credentials:editundertmdb.api_key.
Alternative command to edit credentials:
EDITOR=nano bin/rails credentials:edit
Format the credentials file like so:
tmdb:
api_key: your_tmdb_api_key_here
Use the helper script to run test/lint suites:
bin/checkThis runs RSpec, Cucumber (if present), and rubocop -a, skipping any tool that isn't installed in the bundle.