Coder Social home page Coder Social logo

lgraf / frontend-integration-devtalk Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.12 MB

compose web pages from distributed fragments

HTML 15.29% JavaScript 49.46% CSS 24.38% Dockerfile 0.04% Handlebars 0.04% SCSS 10.79%
javascript webcomponents integration frontend self-contained-system transclusion

frontend-integration-devtalk's Introduction

Demo application

The application use webcomponents (Custom Elements + HTML Imports) to compose pages out of main (domain) content and different distributed fragments (header, footer) on the client (browser).
The different domain pages are connected through simple hyperlinks.

NOTE: The application is functional in all major browser (pollyfills). Nevertheless there is a short flickering of the transcluded fragments (header, footer) after a GET request in browsers other then chrome (native webcomponents implementation).
If it is not possible to work around this flickering, it should be discussed if webcomponents are the right approach for transclusion (at least for the common fragments that are visible across domain pages in the same place).



client


Structure

  • ui-proxy acts as reverse proxy and route requests depending on the context path to the correct service (using container linking).
  • layout-service delivers common fragments (header, footer), global styles and custom webcomponents.
  • home-ui delivers the 'home' domain page (static HTML).
  • mail-ui delivers the 'mail' domain page (ember.js).
  • presentation contains the dev-talk presentation (Slides).



ARCH


Run the demo application

Requirements:
Local docker(-compose) installation

docker-compose up

The application is then accessible under http://localhost.


Run the presentation

Requirements:
Local npm installation

cd presentation/
npm install
npm start

The presentation is then accessible under http://localhost:8000.
NOTE: You can view the presentation notes by hitting s in the browser.


Resources

Microservice/SCS UI composition

Tech

frontend-integration-devtalk's People

Contributors

lgraf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.