An open API service indexing awesome lists of open source software.

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.

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