1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00
Files
pyscript-python-html/pyscriptjs
Antonio Cuni ad118eeb8e Refactor the demo page
1. Rename simple script into hello world
2. Rename simple script 2 into simple clock
3. Group demos into categories, starting with simple examples towards more complex ones
2022-04-28 17:19:09 +02:00
..
2022-04-28 17:19:09 +02:00
2022-04-25 15:00:14 +02:00
2022-04-25 15:00:14 +02:00
2022-04-25 15:00:14 +02:00
2022-04-26 11:38:05 +02:00
2022-04-13 21:48:26 +02:00
2022-04-25 15:00:14 +02:00

PyScript Demonstrator

A simple webapp to demonstrate the capabilities of PyScript.

Getting started

  1. If you don't already have Node.js, install it. The official installer for the LTS version of Node is available from nodejs.org.

  2. If you don't already have Rollup, install it. Rollup can be installed as a global resource using:

    $ npm install --global rollup
    
  3. Install the demo apps requirements:

    $ npm install
    
  4. Start the server:

    $ npm run dev
    

    This will compile the resources for the app, and start the development server.

  5. When the compilation completes, it will display something like:

      Your application is ready~! 🚀
    
      - Local:      http://localhost:8080
      - Network:    Add `--host` to expose
    
    ────────────────── LOGS ──────────────────
    

    Once this is visible, open a browser at http://localhost:8080. This will provide a list of demos that you can run.