Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1003 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 1003 Bytes

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.