Wrapping Up
In this chapter, you learned how to set up a front-end project for Node.js using webpack. To style the application, you used Twitterâs Bootstrap framework.
Rather than write front-end JavaScript code to the lowest common denominator among browsers, you installed and configured TypeScript to transpile and type-check your code. Knowing how to do this, youâre now able to explore using more TypeScript features in your Node.js and front-end code.
For handling synchronous and asynchronous code flows, we doubled down on async functions paired with Promise-generating methods. You learned how to issue asynchronous HTTP requests using the fetch method.
We explored the vulnerabilities inherent in generating HTML naively with JavaScript template ...
Get Node.js 8 the Right Way 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.