Skip to content

palkan/rails-on-wasm-playground

Repository files navigation

Rails on Wasm playground application

This is a sample application to showcase different Rails on Wasm techniques. The baseline version comes with a simple Rails app backed by a SQLite3 database.

Tip

Read more about Rails on Wasm in our Writebook 📖.

See more features and variations in the PRs marked as "demo".

Install & Run

You need to make a few steps to run this application in your browser:

  1. Install Ruby deps:
bundle install

1+. Feel free to run the app locally (as a regular Rails app):

bin/dev
  1. Compile the app into a Wasm module:
bin/rails wasmify:pack
  1. Install PWA app dependencies:
cd pwa/ && yarn install
  1. Run the PWA app to see the Rails app running in your browser:
cd pwa/ && yarn dev

Go to http://localhost:5173/boot.html.

About

A minimal Rails app to showcase Rails on Wasm features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published