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".
You need to make a few steps to run this application in your browser:
- Install Ruby deps:
bundle install
1+. Feel free to run the app locally (as a regular Rails app):
bin/dev
- Compile the app into a Wasm module:
bin/rails wasmify:pack
- Install PWA app dependencies:
cd pwa/ && yarn install
- Run the PWA app to see the Rails app running in your browser:
cd pwa/ && yarn dev