Project template
This is a project template for creating a Svelte app with a python backend.
The template requires npm and Flask to be installed.
Quickstart
Run npm install in the webapp component to instanciate the modules required by svelte:
cd webapp
# to use Typescript run:
# Node scripts/setupTypeScrupt.js
npm ci
# to start a local development server for the svelte app only:
npm run dev
For using the flask server you need to compile your Svelte App. You need to repeat this on every change before restarting the flask server.
In the webapp folder do
npm run build
After that you need to activate the flask server.
In the project folder do:
flask run
Navigate to http://127.0.0.1:5000/index.html to see the result
Thanks
Special thanks go to
- Joshua Nussbaum for providing this beautiful slider menu
- Linus Benkner for providing the blueprint for the tailwind integration
- The SvelteKit project for providing the Framework
Description
Languages
JavaScript
40.7%
HTML
20.8%
Python
16.3%
TypeScript
14.9%
Svelte
7.3%