Skip to content

Basic Magnolia CMS editor build with Vaadin Collaboration engine

Notifications You must be signed in to change notification settings

rkovarik/vaadin-magnolia-collaboration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Magnolia Editor

Untitled.mp4

Running the page editor application

  1. Build the application
./mvnw
  1. Run/test the application
cd demo
.././mvnw spring-boot:run
  1. Open the application in your browser http://localhost:8080/login
  2. Log in with username/password (e.g mmonroe/mmonroe). The demo users are: mmonroe, vvangogh, jbach, aschopenhauer, ldavinci, rdescartes, ppicasso, fvoltaire, aeinstein, ggalilei.
  3. Start editing a web page by selecting it from the left navigation menu. The URL should change to e.g. http://localhost:8080/?componentPath=%2Ftravel%2Fcontact
  4. You can change the navigation title of the page, Contact -> Contact us
  5. Save the changes text by clicking the save button at the bottom of the form.
  6. The web page is re-rendered with the new title in the horizontal navigation.
  7. Editable components are marked by pencil icon on the right side of the green bars. Edit a page component by clicking the edit icon inside the rendered page in the middle of the screen. The URL should change to e.g. http://localhost:8080/?dialog=textImage&componentPath=%2Ftravel%2Fcontact%2Fmain%2F0
  8. Start editing a text in the form on the right side of the screen.
  9. Do the same steps (2.-6.) with another user (e.g. name aeinstein, password aeinstein)
  10. The collaboration engine notifies the user about the other user editing the same component.
  11. As one of the users, save the edited text by clicking the save button at the bottom of the form. 11.The page is re-rendered with new data.
  12. The chat at the bottom briefly informs other users which component was edited.

⚠️ The demo runs against https://demo.magnolia-cms.com/: It might be broken by other users playing with it and you might get an error like Can't fetch the Magnolia page /travel. But it should be restarted/reset every 30 minutes.

Developing the page editor application

You can import the project to your IDE of choice as you would with any Maven project. Read more on how to import Vaadin projects to different IDEs (Eclipse, IntelliJ IDEA, NetBeans, and VS Code).

Deploying to Production

To create a production build, call mvnw clean package -Pproduction (Windows), or ./mvnw clean package -Pproduction (Mac & Linux).

./mvnw clean package -Pproduction

This will build a JAR file with all the dependencies and front-end resources, ready to be deployed. The file can be found in the target folder after the build completes. Once the JAR file is built, you can run it using

cd demo
java -jar target/magnolia-page-editor-demo-1.0-SNAPSHOT.jar

Useful links

About

Basic Magnolia CMS editor build with Vaadin Collaboration engine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published