Nodejs tutorial now in ES6 syntax
August 30, 2018
We're glad to update the Nodejs tutorial to ECMAScript 6 (ES6) syntax! Here a few benefits:
- uses fewer dependencies
- uses modern node.js/ES6 features (e.g., let/const, fat arrow functions, destructuring, async/await)
- structures the server-side code more in line with express-generator (client-side assets in public folder, and express routes in routes folder)
And don't worry, Heroku currently supports to node.js (LTS) version 8.11.4, more than enough to support this.
Many thanks to Petr Broz, former Autodesk engineer, now part of Forge team!