Hacker News new | ask | show | jobs
by falcon86 4684 days ago
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?
1 comments

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.