Book Image

Mastering Web Application Development with Express

By : Alexandru Vladutu
Book Image

Mastering Web Application Development with Express

By: Alexandru Vladutu

Overview of this book

Table of Contents (18 chapters)
Mastering Web Application Development with Express
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we learned how to create a RESTful API from the ground up using Express. We also studied how to reuse HTTP as much as possible by leveraging HTTP methods and status codes.

By writing the tests first and the application code afterwards, not only did we validate the correctness of our code, but we also drove its design from the start.

Last but not least, we tackled different issues when creating APIs, such as versioning, caching, and rate limiting, and we saw how the framework helps us solve them easily.

There was no point in using templates while creating this RESTful API since it always returns JSON, but we will remedy this in the next chapter when we explore Express templating in depth.