Site.js and Pi
Yesterday, I released Site.js 12.8.0 which brings initial ARM support for Linux.
What that means is that it’s now easier than ever to get a static or dynamic (Node.js) web server up and running on a Raspberry Pi.
Have a play!
Do you have a Raspberry Pi 3B+ or 4B lying around?1 Well then, grab it, fire up a terminal window, and get your first static site up and running in the next 30 seconds:
# Install Site.js.
wget -qO- https://sitejs.org/install | bash
# Create the most basic web site ever.
echo 'Hello, world! > index.html
# Run Site.js
site
Now launch a browser2 on your Raspberry Pi and hit https://localhost
in it.
Please sir, may I have some more?
But, of course!
If this has whet your appetite, so to speak, head over to the Build a simple chat app with Site.js tutorial where you will learn lots more about making dynamic web sites with Site.js using DotJS (Node.js made simple, ala PHP) as you create the WebSocket-based chat example you see in the first screenshot.
Have fun and do let me know how you get on.
Like this? Fund us!
Small Technology Foundation is a tiny, independent not-for-profit.
We exist in part thanks to patronage by people like you. If you share our vision and want to support our work, please become a patron or donate to us today and help us continue to exist.
-
Those are the only ones I tested with so far. It might work on other ones too. Do let me know if you try it out. ↩︎
-
For example, type
epiphany
in a terminal window to launch the Epiphany browser – aka GNOME Web – that comes with Raspbian but isn’t available from the raspberry menu under Internet for some inexplicable reason. ↩︎