Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cabreraalex/svelte-flask-example
- Owner: cabreraalex
- Created: 2019-09-25T15:59:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-30T16:50:21.000Z (3 months ago)
- Last Synced: 2024-11-08T00:00:26.400Z (13 days 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.