Follow

Site.js tutorial (in a toot): How to make a dynamic web site

[Windows 10 version]

1. iex(iwr -UseBasicParsing sitejs.org/install.txt).Content

2. mkdir -p counter/.dynamic

3. echo 'i=0; module.exports = (request, response) => response.html(`${++i}`)' | Out-File -Encoding UTF8 counter/.dynamic/index.js

4. site counter

Hit https://localhost and refresh 🤓👍

· · Web · 0 · 1 · 5
Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!