Oracle Magazine, May/June 2018
Database Developer OPEN SOURCE Build REST APIs for Node js Part 1 Start by learning about web server basics By Dan McGhan Node js and REST APIs go hand in hand In fact Ryan Dahl the creator of Node js once described the focus of Node js as doing networking correctly But where should you start when building a REST API for Node js What components should be used and how should things be organized These are surprisingly difficult questions to answer especially when youre new to the Node js ecosystem You could choose to use low level packages and lots of custom code to build an API thats highly optimized for a specific workload Or you could use an all in one framework such as Sails where many of the decisions have been made for you There is no right or wrong answer the best option will depend on the type of project youre working on and where you want to invest your time In this article series Ill assume youre new to Node js and show you how to build a REST API that attempts to balance granular control and magical black boxes The goal will be to create an API that supports basic create read update and delete ORACLE MAGAZINE MAY JUNE 2018 88
You must have JavaScript enabled to view digital editions.