2022-01-12 16:22:37 +01:00
2022-01-12 16:22:37 +01:00
2022-01-10 20:37:21 +01:00
2022-01-11 06:37:11 +01:00
2022-01-04 09:22:38 +01:00

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

Description
A Svelte template using a python flask server backend
Readme 401 KiB
Languages
JavaScript 40.7%
HTML 20.8%
Python 16.3%
TypeScript 14.9%
Svelte 7.3%