ryan-haskell / elm-inertia-rails-starter

Use Rails and Elm together with Inertia.js!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elm-inertia-rails-starter

A starter template for using Elm with a Rails backend (powered by Inertia.js).

Local development

Required software

Name How to check
Ruby v3.3.2+ ruby -v
Rails v7.1.3+ rails -v
sqlite v3.43.2+ sqlite --version
Node.js v20.14.0+ node -v

Running the web server

# Install ruby and node dependencies
bundle install
npm install

# Initialize the SQL database
rails db:migrate

# Runs the Rails server at http://localhost:3000
npm run dev

About

Use Rails and Elm together with Inertia.js!


Languages

Language:Elm 51.4%Language:Ruby 35.4%Language:HTML 8.0%Language:Dockerfile 2.5%Language:CSS 1.1%Language:JavaScript 0.9%Language:TypeScript 0.4%Language:Shell 0.3%