Tuesday 28 February 2017

[Question] How to combine Node and Frontend

Hello Guys, first of all i'm sorry if this question is stupid or posted in the wrong subreddit.I'm have some experience in front-end development but i'm new to backend. I learned some basics about Node, Express and MongoDB and now want to create a website.As far as I understand there are two general ways of doing it(?):1) Handel pretty much all stuff on the server side, e.g. pass variables to ejs files and serve them on the different routes.2) Host a 'static' frontend-website which then calls my routes with ajax and builds up my page with the response Data (with jQuery or similar)In which case should i use them? Should they be combined?The main purpose is to show products(basic attributes like name, image, description). The user then should be able to comment and rate theese products. A avarage rating should be calculated, the product should be sortable and different filtern should be applied etc.Thanks for you help:)

Submitted March 01, 2017 at 01:04AM by suizide96

No comments:

Post a Comment