Skip to content

Instantly share code, notes, and snippets.

@timlevett
Last active December 2, 2015 15:25
Show Gist options
  • Save timlevett/39bf7ea5bcb70266d63b to your computer and use it in GitHub Desktop.
Save timlevett/39bf7ea5bcb70266d63b to your computer and use it in GitHub Desktop.
Project static : a uw-frame review

Summary

I took some time during research day to evaluate uw-frame as a maven project. Many times we have said "why is this a maven project, it is just static content". I took that good point, and ran with it. What if frame was just static content.

Steps Taken for Test

What does that do?

  • To work on the frame static content you can just run http-server (documented here: https://github.com/timlevett/static-frame/blob/master/README.md). http-server is a node project that just runs a http server with the given directory as root.
  • This opens doors to other developers, like WAMS and the like to dev stuff that isn't Java based. They can just pull in the bower component as we did.
  • We could start writing node express.js based frame apps (like all the cool kids)

Why not do this?

Complexity increases. In order to make a change happen and see it reflected in angularjs-portal you would need to:

  • make change in static-frame, commit and tag static-frame (there may be a way to get snapshots or something, not sure)
  • do a mvn install on uw-frame with the new static-frame component
  • do a mvn clean package on angularjs-portal

So what do you all think?

@bhill6
Copy link

bhill6 commented Dec 2, 2015

Paul, you just described the Discovery component of Spring Cloud, aka the Netflix OSS 'Eureka' service. It does precisely what you just described. While it's a java-centric service, the API is entirely REST based, and can (and is) used by non Java components. Not to divert this thread onto a side road, but if it interests anyone, here's the Eureka REST api: https://github.com/Netflix/eureka/wiki/Eureka-REST-operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment