Falko Schindler baa97acfe8 Unify declaration of third-party dependencies (#2991) 9 tháng trước cách đây
..
.gitignore baa97acfe8 Unify declaration of third-party dependencies (#2991) 9 tháng trước cách đây
README.md baa97acfe8 Unify declaration of third-party dependencies (#2991) 9 tháng trước cách đây
main.py baa97acfe8 Unify declaration of third-party dependencies (#2991) 9 tháng trước cách đây
package.json baa97acfe8 Unify declaration of third-party dependencies (#2991) 9 tháng trước cách đây
signature_pad.js baa97acfe8 Unify declaration of third-party dependencies (#2991) 9 tháng trước cách đây
signature_pad.py baa97acfe8 Unify declaration of third-party dependencies (#2991) 9 tháng trước cách đây

README.md

Use Node Modules as Third-party Dependencies

This example demonstrates how to use third-party node modules as dependencies in a NiceGUI app. The app uses the signature_pad node module to create a signature pad. In package.json, the signature_pad module is listed as a dependency, while signature_pad.js and signature_pad.py define the new UI element which can be used in main.py.

  1. First, install the third-party node modules (assuming you have NPM installed):

    npm install
    

This will create a node_modules directory containing the signature_pad module.

  1. Now you can run the app as usual:

    python3 main.py