Building web experiences with Node.js and Heroku
Heroku can be used to create web, mobile, and API experiences with a variety of programming languages, frameworks, and supporting data stores. In this case, we have chosen to use Node.js, LWR, and Heroku Postgres.
The ability to create web experiences with LWCs in Node.js reuses skills you may already have or will develop later when you are developing UI experiences within the Salesforce UI, known as Lightning Experience or LEX. For this part of the chapter, it will help to have some knowledge of Node.js and its packaging framework, npm.
When you deploy to Heroku, it automatically detects the languages you are using by scanning the files you have created and chooses the latest operating system, build, and runtime tools for you: this is a key feature of Heroku and saves you from worrying if the operating system or build tools are current and have the latest security patches applied.
The following subsections will focus...