Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cabreraalex/svelte-flask-example

Simple example of using Flask to serve a Svelte app
https://github.com/cabreraalex/svelte-flask-example

Last synced: 6 days ago
JSON representation

Simple example of using Flask to serve a Svelte app

Awesome Lists containing this project

README

        

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