Skip to content

Simple example of using Flask to serve a Svelte app

Notifications You must be signed in to change notification settings

jamesfwei/svelte-flask-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svelte.js + Flask

A super simple example of using Flask to serve a Svelte app and use it as a backend server.

Run the following for development:

  • python server.py to start the Flask server.
  • cd client; npm install; npm run autobuild to automatically build and reload the Svelte frontend when it's changed.

This example just queries the Flask server for a random number.

About

Simple example of using Flask to serve a Svelte app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.8%
  • CSS 24.9%
  • Python 14.2%
  • HTML 10.4%
  • Svelte 6.7%