Skip to content

Hot-reload server demo, based on server-sent events (SSE)

Notifications You must be signed in to change notification settings

sapachev/hot-reload

Repository files navigation

Hot-reload server, based on server-sent events (SSE)

This repository contains demo of hot-reload server, based on server-sent events (SSE). This demo show the same approach, which was implemented in The Error Pages tool.

The diagram below shows the data flow and explains in general terms how it works:

Diagram

Here you can find the hot-reload examples under Express and Koa servers.

Served files are located in src directory and can be edited to see how the hot-reload works. You can edit, add or remove files in this directory.

Before server run, please install required dependencies with npm install command.

Express

Use npm run express-server command to run express-server with custom middlewares.

Koa

Use npm run koa-server command to run koa-server with custom middlewares.

About

Hot-reload server demo, based on server-sent events (SSE)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published