This repo is an absolute minimum example of what it takes to load a Turbo Stream.
- have node installed
- clone the repo
- run
npm install
, this will download the only dependency: express
- in this directory, run
npm start
- open a browser to the address printed to the console, it will likely be http://localhost:7155
If you get an error in your console, maybe with a EADDRINUSE message, you can change the port by running the command with a PORT variable:
PORT=3000 npm start
note where the spaces are, it's important there are no spaces around the "="
There is no hot reloading (at all) in this example repo. After making any changes to the code in this repo, you will need to shut down the server (Ctrl + C in the terminal where it is running) and restart it (npm start
again).