microsoft / TypeScript-Node-Starter

A reference example for TypeScript and Node with a detailed README describing how to use the two together.
MIT License
11.31k stars 2.77k forks source link

[question] Is this a good starter for a Node API, or would it be over-complex? #57

Closed quantuminformation closed 6 years ago

bowdenk7 commented 6 years ago

There are probably better starting points out there, but really you would just need to delete things from this starter. The biggest difference is that in each controller, instead of calling res.render and returning a page, you would just want to return json. You can easily do this using res.json.

Link: http://expressjs.com/en/api.html#res.json