Skip to content

Demo repo of turbo streams in conjunction with express js

Notifications You must be signed in to change notification settings

benkenawell/turbo-stream-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turbo Stream + Express Demo

This repo is an absolute minimum example of what it takes to load a Turbo Stream.

Turbo Example gif

Download and install

  1. have node installed
  2. clone the repo
  3. run npm install, this will download the only dependency: express

Run the example

  1. in this directory, run npm start
  2. open a browser to the address printed to the console, it will likely be http://localhost:7155

Run with a different port

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 "="

Modifying the code

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).

About

Demo repo of turbo streams in conjunction with express js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published