Re:Node.js: the good, the bad, the ugly - why the hell would...
by falcon86 on Tuesday August 20, 2013 @11:58AM
(#6244496)
I'm fairly new to web development, but I've been thinking about starting a Node.js project backed by a PostgreSQL database lately. I was planning on using express to create an API of some sort to do all the database queries and return relevant information in JSON, then create the website front-end with something like Angular and have it just communicate with the API returning the JSON. Is there a better approach?
[ Parent
| on HN ]
Re:Node.js: the good, the bad, the ugly - why the hell would...
by rpedela on Tuesday August 20, 2013 @12:22PM
(#6244688)
Use node-postgres for the DB piece. If your server is just going to be a REST API then use node-restify. If you want the server to serve a website (html, css, js) then use express. I have not used Angular so I cannot comment.