Skip to content

complate/complate-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

complate-hello-world

This demonstrates using the same complate component from different runtime environments.

What the components do

One trivial component

Renders a red paragraph.

One less trivial component

It displays a list (a plain <ul>), with the items in the list coming from various sources.

How to compile the components

First, build the components and make them accessible:

cd components/p
npm link

cd ../list
npm link

Running the express example

cd express
npm install
npm link complate-hello-world-p complate-hello-world-list
npm start

Running the Spring MVC example

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.

About

Demonstrates reuse of components from different web application platforms.

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors