Skip to content

Repository files navigation

Mini Grain

A miniature version of Grain's menu management system. Admins create menus with categories and items, publish them, and customers browse the live menus. Built with Rails 8, Inertia.js, and React.

Tech Stack

  • Ruby 3.4.4 / Rails 8.1
  • PostgreSQL 16 (via Docker)
  • Inertia.js + React (frontend)
  • Tailwind CSS (styling)
  • Vite (asset bundling)
  • RSpec + FactoryBot + Capybara (testing)

Setup

# Start PostgreSQL
docker compose up -d

# Install dependencies
bundle install
yarn install

# Create, migrate, and seed the database
bin/rails db:create db:migrate db:seed

# Start the dev server (Rails + Vite)
bin/dev

bin/dev runs both the Rails server and the Vite dev server via Procfile.dev.

Running Tests

bundle exec rspec

System tests use headless Chrome via Selenium.

Credentials

After seeding, log in at /admin with:

About

Base code for technical exam

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages