Filip Krumpe 8301f34a91 use npm ci instead of install
to make sure the packages are installed as stated in the package-lock.json file
2022-01-13 07:30:47 +01:00

1.3 KiB

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