Answer the question
In order to leave comments, you need to log in
How to implement a simple isomorphic application?
In theory, I understood that an isomorphic application is when instead of the REST API c, rendered pieces of html are given from the server? If not, then fix it.
So far I have found only the theory of isomorphic applications or the construction of complex architectures. But I can’t find how to glue a simple example like Hello world.
How to make a simple isomorphic application? On NodeJS + Angular for example?
Answer the question
In order to leave comments, you need to log in
There are no "isomorphic" applications, there are isomorphic modules and libraries.
In general, modules (libraries) in js can be conditionally divided into 4 groups:
1. ClientSide - work only on the client (browser), as they are tied to its api (dom, ajax, etc.). Examples: jQuery, Angular
Looking deeper, the ClientSide is also different, since the platforms are also different (browser, mobile browser, PhoneGap, Electron) and their API may differ.
2. ServerSide - work only on the server (node.js), again tied to the API of the platform, only the server one (working with files, databases, system, etc.). Examples: express, mongoose
3. NoSide - They work on any platform, as they are not tied to the api of a specific platform, but use only the capabilities of native js (or other similar libraries). Examples: lodash/underscore, validate.js, most templating engines
They are called isomorphic
4. BothSide - Have versions for both client and server, + well-established interaction between them (not always). Examples: Meteor.js, Derby, more recently React.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question