Unfancy rest apis, frontend skeleton for third party web widget + embedcode
npm install coffeerest-api-frontend-embedwebwidgetUnfancy rest apis, frontend skeleton for third party web widget + embedcode

Just add these fields to your coffeerest-api model.coffee specification
module.exports =
host: "localhost:8080"
---> webwidget:
---> id: "yourproject"
---> transport: "http://"
---> urls:
---> js: "/embed/js"
---> test: "/embed/test"
---> app:
---> files:
---> js: [ __dirname+"/public/embed/ractive.min.js", __dirname+"/public/embed/app.js"]
npm install coffeerest-api
npm install coffeerest-api-doc
npm install coffeerest-api-frontend-embedwebwidget
for servercode see coffeerest-api
$ coffee server.coffee &
$ curl -H 'Content-Type: application/json' http://localhost:8080/v1/embed/test
Your embedcode will look like this:
Voila, you have a wonderful startingpoint to build 3rd party webwidgets.
The script.src-url will return the concatenated string of all files defined in webwidget.app.files.js