http://stackoverflow.com/questions/43061791/how-to-combine-express-and-angular-routes
Back end routing : Routes defined to fetch/update data.
Front end routing : Routes defined as per the page which shall be shown to user.
So lets say we have two pages , home page and profile page
so, front end routes will have two pages
"/home" loading home page "/profile" loading profile
now on each of the page, you would need to show some data inside the html page, for which you make routes :
"/getHomePageData" route to return some news feed (lets say) "/getProfilePageData" route to return some user related information
http://stackoverflow.com/questions/14934452/how-to-get-all-registered-routes-in-express
http://stackoverflow.com/questions/35749288/separate-file-for-routes-in-express
console.log(app._router.stack); // Express >= 4.5.x
https://scotch.io/tutorials/keeping-api-routing-clean-using-express-routers
Sender's name, just include whatever string in the message. If you mean an ID to send a message, that's
Back end routing : Routes defined to fetch/update data.
Front end routing : Routes defined as per the page which shall be shown to user.
So lets say we have two pages , home page and profile page
so, front end routes will have two pages
"/home" loading home page "/profile" loading profile
now on each of the page, you would need to show some data inside the html page, for which you make routes :
"/getHomePageData" route to return some news feed (lets say) "/getProfilePageData" route to return some user related information
http://stackoverflow.com/questions/14934452/how-to-get-all-registered-routes-in-express
http://stackoverflow.com/questions/35749288/separate-file-for-routes-in-express
console.log(app._router.stack); // Express >= 4.5.x
https://scotch.io/tutorials/keeping-api-routing-clean-using-express-routers
Sender's name, just include whatever string in the message. If you mean an ID to send a message, that's
socket.id
; you can send from server to a specific client using, IIRC, io.clients[id].emit
http://www.nickstefan.net/blog/view/express-routing
http://stackoverflow.com/questions/12943553/what-is-the-difference-between-a-node-js-express-route-and-a-controller
TDD
https://webapplog.com/tdd/
Comments
Post a Comment