Join us for Code @ Think 2019 | San Francisco | February 12 – 15 Register now Limited availability
By Carmine DiMascio | Published May 22, 2017 - Updated September 12, 2018
In this brief article, I’ll show you how to scaffold an API application using Node.js along with best-of-breed technologies and approaches. I will introduce the express-no-stress generator, which can be used to quickly scaffold a new API application that’s built on Express.js. This scaffolding provides structured logging, API request validation, interactive API documentation, environment-driven configuration, a simple build/transpilation process, and more. The scaffolded application is also suitable for deployment on modern cloud platforms like IBM Cloud.
Why is this important? Nowadays, software is often delivered as a service on the web, and this is the software that drives the API economy. APIs create value by delivering on what others want: They help developers innovate freely, drive change, connect seemingly disparate domains, and ultimately deliver new value.
When building APIs, it is important to meet the needs of the developers who consume them. APIs must be dependable, scalable, intuitive, and easy to use. They must also minimize the time and cost required to maintain them. Ideally, an API application is also:
Fortunately, the express-no-stress generator creates applications that meet these demands. express-no-stress is a mini-project that I started-a Yeoman generator that scaffolds a consistent, fully functional REST API. express-no-stress combines the tools you need to build awesome apps. It takes just seconds to generate, and allows you to focus on what’s important – writing application code.
To see the out-of-the-box scaffolded app in action, visit https://express-no-stress-scaffolded-app.mybluemix.net.
Note: The scaffolding provides only a minimal example API, so it’s up to you to implement your API code the way you want.
To get started with express-no-stress, go to the GitHub repo.
For the impatient, you can run:
npm install b g yo generatorb expressb nob stress
yo expressb nob stress myapp
The express-no-stress Yeoman generator makes is easy to quickly create web APIs with Node.js and Express. It’s a useful tool to have in your toolbox, and it’s great for both production and side projects. If you’re working in a microservices environment (or even if you’re not), express-no-stress helps to ensure that new Node.js APIs are scaffolded consistently and use a common set of solid tools. Check it out!
February 26, 2019
February 5, 2019
January 9, 2019
Back to top