Chapter 12. Best practices
This chapter covers
- Benefits of simplicity in your code
- Structuring your app’s files
- Using the npm shrinkwrap command to lock down dependency versions for reliability (and the benefits of doing so)
- Avoiding installing modules globally
It’s time to bring this book to a close.
If this book were a tragedy, we’d probably end with a dramatic death. If it were a comedy, we might have a romantic wedding. Unfortunately, this is a book about Express, a topic not known for its drama and romance. The best you’ll get is this: a set of best practices for large Express applications. I’ll do my best to make it romantic and dramatic.
With small applications, organization doesn’t matter much. You can fit your app in a single file ...
Get Express in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.