RRupert

Getting started

Run Rupert locally with Ruby, SQLite, and the Shopify tooling it needs.

Requirements

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:

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)