News for hackers. Stuff that matters.

palkan

Show HN: Ruby on Rails tutorial running in the browser

https://rails-tutorial.evilmartians.io/

Meet the Ruby on Rails Getting Started tutorial that runs fully in the browser: a web server, a console, a database—everything you need to explore the framework without dealing with local installation.Source code: https://github.com/evilmartians/rails-tutorialThis is the first step towards an in-browser development environment for Rails that could be used with AI app generators like Bolt among...

( Read More... | 3 comments | 3 points | on HN )
AnyCable is a realtime server for reliable two-way communication focused on reliability (or delivery guarantees), performance and security. Open source, managed (https://plus.anycable.io), self-hosted Pro—pick according to your needs!

v1.5 comes with new features allowing you to use AnyCable in a standalone mode with any (or none) backend: – pub/sub streams: public and signed; – whispering: publish broadcasts from clients, w/o touching backend; useful for typing indicators, cursors, and other frontend-only features.

Check out our new demos:

1. Next.js demo w/ public streams and whispers: https://stackblitz.com/edit/anycable-pubsub 2. Rails demo using signed streams instead of channels (and whispers, too): https://github.com/anycable/anycable_rails_demo/pull/34

Yet another example of Ruby on Wasm with some distinguishing features:

- Install dependencies from RubyGems on-the-fly and cache them in your browser - Make web requests from Ruby via Faraday JS adapter

Full-featured in-browser Ruby apps are getting real!

Yeah, kind of. Client-server commands sent over WebSockets are translated into JS function calls (using HTTP as a transport); the functions could be used to send some data back, set up a subscription, or whatever. Similarly, you can broadcast messages to connected clients via HTTP.

Show HN: AnyCable – real-time for Next.js, open source alternative to PaaS

https://docs.anycable.io/guides/serverless

You might have heard that scaling WebSocket infrastructure is not an easy task. It was true–until recently.We built the open source real-time server, AnyCable, that deploys to Fly.io in one command (and configures itself), and the SDK for serverless JS/TS that allows you to build real-time features without any 3d-party PaaS. We call it a real-time server, because it has WebSockets and more, and...

( Read More... | 2 comments | 5 points | on HN )
Re:Reusable development containers with Docker Compose and Dip on Tuesday November 17, 2020 @04:20PM (#25129997)
It’s possible to use health checks for that kind of “wait-for-it”-s. Checkout the configuration here: https://evilmartians.com/chronicles/ruby-on-whales-docker-fo...

Note that it requires using Compose v2.4, not 3.x.