• Stars
    star
    154
  • Rank 237,183 (Top 5 %)
  • Language
    JavaScript
  • Created almost 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple example of using Flask to serve a Svelte app

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.