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: 4 months ago
JSON representation
Simple example of using Flask to serve a Svelte app
- Host: GitHub
- URL: https://github.com/cabreraalex/svelte-flask-example
- Owner: cabreraalex
- Created: 2019-09-25T15:59:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-30T16:50:21.000Z (10 months ago)
- Last Synced: 2025-03-01T20:09:24.183Z (4 months ago)
- Language: JavaScript
- Size: 115 KB
- Stars: 163
- Watchers: 4
- Forks: 27
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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.