Get the latest tech news
Run Ruby on Rails in the browser using WebAssembly
Ruby on Rails' famous blog in 15 minutes now runs right in your browser thanks to WebAssembly.
It's a full-stack, server-controlled application: you have a database ( SQLite) to keep your data, a web server to handle HTTP requests ( Puma), and a Ruby program to keep your business logic, provide UI, and process user interactions. The previous command generates a minimal PWA application built with Vite that can be used locally to test the compiled Rails Wasm module or be deployed statically to distribute the app. Again, StackBlitz made this a thing for JavaScript projects: you create a minimal reproduction script, point at the link in a GitHub Issue, and spare maintainers the time on reproducing your scenario.
Or read this on Hacker News