Git Product home page Git Product logo

portalng2's Introduction

portalng2

Sample AngularJS application demonstrating a portal application using a 'federated applet' model

Design Goals

  • Portal and applets should be independent web applications.
  • Applets should still work and present their 'core' interface if the portal is down.
  • Changes to portal layout should update automatically accross all applets without a deployment or restart.
  • Common layout should be shared with applets via versioned components (a .js file)
  • Applets will be responsible for updating to the latest version should the portal layout change
  • Portal API should be versioned to allow backward compatability with older applets.

Implementation Notes

  • I have used express as the backend for the portal but this is not a requirement, any backend that can serve the layout html fragment and the restful API would work.
  • I have implemented CORS on the server and the client to allow the applets to communicate with the portal accross different domains.
  • I have used the angular-ui-router library in the applet to demonstrate that the portal approach and routing within an applet are compatible however this is not a requirement for the portal to work. Standard AngularJS routing or no routing at all will work equally well with this approach.

Running the sample

Clone repo then..

$ cd portalng/portal
$ npm install
$ node app.js
(new window)
$ cd portalng/applet1
$ npm install
$ node app.js

then Navigate to http://localhost:3000

Compiling the portal distributable

cd components
grunt

portalng2's People

Contributors

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