https://github.com/complate/complate-hello-world
Demonstrates reuse of components from different web application platforms.
https://github.com/complate/complate-hello-world
Last synced: about 1 year ago
JSON representation
Demonstrates reuse of components from different web application platforms.
- Host: GitHub
- URL: https://github.com/complate/complate-hello-world
- Owner: complate
- Created: 2019-01-11T11:59:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-11T12:07:13.000Z (over 7 years ago)
- Last Synced: 2025-02-16T08:26:49.430Z (over 1 year ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 `
- `), 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`](spring-mvc/src/main/views/index.js) contains a call to
`Java.from`, which translates a Java `Collection` to a JavaScript `Array`.