Getting started
Run Rupert locally with Ruby, SQLite, and the Shopify tooling it needs.
Requirements
- Ruby 4.0.9 (via rbenv — see
.ruby-version) - Bundler
- SQLite 3 with FTS5 support (included with the Ruby SQLite adapter)
- Node (for the Shopify CLI, if developing the app install)
Set up
# 1. Install gems (from web/)
bundle install
# 2. Copy the env template and fill in credentials
cp .env.example .env
# 3. Keep DATABASE_URL unset. If you set a custom database path, use
# RUPERT_SQLITE_DATABASE_DEVELOPMENT in the environment instead.
# 4. Prepare the SQLite database
bin/rails db:prepare
# 5. Build the Tailwind CSS
bin/rails tailwindcss:build
# 6. Run the server
bin/rails server # http://localhost:3000
Environment variables
The .env at the repo root is loaded at boot (Dotenv) and holds the sync-engine credentials:
SHOPIFY_CLIENT_ID/SHOPIFY_CLIENT_SECRET— Shopify sync credentialsSQUARE_ACCESS_TOKEN(+ optionalSQUARE_LOCATION_ID,SQUARE_ENVIRONMENT)SYNC_MINUTES— how often scheduled syncs runGOOGLE_DRIVE_*— automated database backupsRUPERT_CHAT_*— optional model settings for the team chat assistant (seedocs/ops/team-chat.md)
When developing through the Shopify CLI, the OAuth pair (SHOPIFY_API_KEY / SHOPIFY_API_SECRET) comes from shopify app info --web-env.
Run the tests
bin/rails test # full suite (integration + unit)