Skip to content

enonic/tutorial-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

32029a6 · Feb 10, 2025
Oct 8, 2024
Jan 27, 2025
Sep 27, 2024
Oct 8, 2024
Sep 27, 2024
Apr 18, 2024
Oct 8, 2024
Sep 27, 2024
Feb 10, 2025
Feb 10, 2025
Sep 27, 2024
Sep 27, 2024
Sep 27, 2024
Sep 27, 2024

Repository files navigation

Tutorial React SPA powered by Enonic

This tutorial is published on Enonic's Developer Portal

About

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.

Configuration

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).

Start

npm run dev -- --port 3000

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.

npm run build

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.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

Tutorial for building a React app in Enonic XP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published