can I have the view in the front-end?

231
March 04, 2017, at 09:59 AM

Here's my goal: having the views folder in the front end. I've been working with Node and Express a little and it's great that I can work on my views straight in the backend. But what if I wanted to just set my routes from express? I still want to keep the full power of templating and I want the front-end to be reusable and organized. So I can use Webpack to bundle a few components in a view, got that figured out. Question is, how do I do that for a few pages for which I have routes from the back-end? Do I just make different bundles for each? Thanks for the tips!

READ ALSO
HiveServer2 TTransportException: Invalid status -128

HiveServer2 TTransportException: Invalid status -128

I'm using a nodejs client driver for hive called jshs2, but I came across a connection problem while connecting to our hiveserver2

634
Loop asynchronous call and join the returned promise

Loop asynchronous call and join the returned promise

I'm working on my first nodejs application which is using bluebirdI've a requirement to call an asynchronous method inside a for loop which returns a promise for each call

290
objectId gets changed in mongoose

objectId gets changed in mongoose

I am trying to assign an objectId to mongoose schema having nested documentBut somehow when it is saved, the ObjectId gets changed

314