How to implement api for web app in js and node.js?

Googled, but for nothing found

In General, there is an application that consists of layout, js file and a small backend for node.js. There the user configures under him through the admin panel and can stick all of this customized application to your website.

Layout is of course from the pile of blocks and all that, how it can be stuck on someone else's site as a single unit as it is implemented in all api, in the form and upload all this stuff in one function in JS?
July 8th 19 at 16:40
2 answers
July 8th 19 at 16:42
iframe-s + js that creates the iframe.
but the same Google map can be inserted without them, is there no other option in my case? I want to like it more careful to implement - rafaela1 commented on July 8th 19 at 16:45
: you check. You connect the card via js and specify the item. There js that creates the iframe and fills it with content.

While there is no shadow dom you have only one way to isolate styles and make all the easy - iframe. - Allene_Crona78 commented on July 8th 19 at 16:48
: okay, I'll move in this direction, thank you - rafaela1 commented on July 8th 19 at 16:51
July 8th 19 at 16:44
look sails.js there fullest API out of the box, API has at once built-in methods, like create, update, find, delete, etc, you can add your own or disable block already built in.

Find more questions by tags APINode.jsJavaScript