Skip to content

Instantly share code, notes, and snippets.

View kijk2869's full-sized avatar
🙄
Is everything peaceful?

Mary kijk2869

🙄
Is everything peaceful?
View GitHub Profile
@ahopkins
ahopkins / # Sanic as Svelte development server.md
Last active June 2, 2022 23:04
Sanic as Svelte development server

Sanic as Svelte development server

The purpose of this gist is to show how Sanic can be used as a development server for a frontend JS framework. In this example we are running a Svelte app with rollup, but the same idea could be applied to any other frameworks JS build tools.

Run with:

sanic path.to:app -d -R ./path/to/public