This tutorial is published on Enonic's Developer Portal
This project was bootstrapped with Vite using react-ts
template and contains a working version of the React application, as well as the tutorial documentation.
This project contains a file called .env
with the following variable, pointing to the Enonic API
VITE_GUILLOTINE_URL=http://localhost:8080/site/intro/master
Verify that this URL corresponds to the Guillotine API URL in your Enonic XP installation (see the tutorial referenced above for more details).
Runs the app in the development mode on port 3000.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production inside the /dist
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.