This demonstrates using the same complate component from different runtime environments.
Renders a red paragraph.
It displays a list (a plain <ul>), with the items in the list
coming from various sources.
First, build the components and make them accessible:
cd components/p
npm link
cd ../list
npm link
cd express
npm install
npm link complate-hello-world-p complate-hello-world-list
npm start
Have Java installed. (We successfully used Oracle's 1.8.0_171, OpenJDK 1.8.0_181 and OpenJDK 11.0.1, and expect these and any in between to work for you as well.)
cd spring-mvc
./mvnw spring-boot:run
Note: While the Spring example uses the components unchanged, its top-level
script index.js contains a call to
Java.from, which translates a Java Collection to a JavaScript Array.