Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Nutrient Web SDK example – TypeScript + Vite

This example shows how to integrate Nutrient for Web into a TypeScript app built with Vite.

Prerequisites

Getting started

Clone the repo:

git clone https://github.com/PSPDFKit/nutrient-web-examples
cd nutrient-web-examples/examples/typescript-vite

Install the project dependencies:

npm install

Running the example

We are ready to launch the app! 🎉

npm run dev

You can now open http://localhost:5173 in your browser and enjoy!

To create a production build of the app and serve it:

npm run build
npm run preview

You can now preview your build at http://localhost:4173 in your browser.

TypeScript integration

This example demonstrates how to integrate Nutrient Web SDK in a TypeScript environment with correct type definitions. The integration can be found in the main TypeScript files in the src/ directory.

License

This software is licensed under a modified BSD license.

Contributing

Please ensure you have signed our CLA so that we can accept your contributions.

Support, issues and license questions

Nutrient offers support for customers with an active SDK license via https://www.nutrient.io/support/request/

Are you evaluating our SDK? That's great, we're happy to help out! To make sure this is fast, please use a work email and have someone from your company fill out our sales form: https://www.nutrient.io/sales/