In this video you will learn how to use NPM on Wix Studio through a demo of the popular NPM package PDFKit.
***************************************
Additional Wix for Developers Resources
Get Started Coding on Wix Playlist (6 Videos) ► • Start Coding with Velo
***************************************
Description
Installing and using NPM packages on Wix Studio offers a seamless development experience allowing you to move fast and test third part code packages with ease.
Working with NPM packages ► https://dev.wix.com/docs/develop-webs...
API Documentation ► https://www.wix.com/velo/reference/ap...
PDFKit Documentation ► https://pdfkit.org/docs/getting_start...
Github Repo with Demo Code ► https://github.com/amandamartin-dev/p...
Timestamps:
00:00 📦 Installing and using NPM packages, like PDFKit, on Wix Studio sites is fully supported with a seamless setup.
00:27 💡 How to assess a high quality package: Consider NPM packages with large weekly downloads, well-maintained, established, and well-documented for installation.
01:56 🧰 Writing backend logic involves importing necessary modules, such as Wix media manager, and requiring NPM packages like PDFKit.
02:24 📄 Generating a PDF involves building the document according to specifications and returning it as a buffer. See the PDFKit docs for other options.
03:04 📤 Uploading generated PDFs to the Wix media manager involves using the correct APIs and declaring your file name and location
03:51 ⬇️ Generating a download link for users involves utilizing the get download URL method and passing the file URL from the upload response.
04:22 🔍 To integrate backend PDF generation with frontend you will import the PDF function, enabling buttons upon valid input, and providing feedback to users during download generation.
05:48 🛠️ Working with NPM packages like PDFKit facilitates easy integration of external functionality for testing ideas and building complex applications on Wix Studio sites.
#wix #wixstudio #javascript #webdevelopment #npm
Be sure to subscribe for more developer tips and tutorials. / @wixfordevelopers
STAY TUNED:
Discord ► / discord
Twitter ► / devsonwix
YouTube ► / @wixfordevelopers