const msg: string = "Hello World!";
In the same folder, create a new file named tsconfig.json. Here is the TypeScript official documentation for configuring tsconfig.json.
Your tsconfig.json file should look like this:
Begin by creating a new EJS file named index.ejs. This file will be the template used to generate index.html. If the model is passed into the template it will render the content as a paragraph.
<!-- Sample Page -->
<h1>Sample Page</h1><% if (model)…
There are a variety of ways to send an email with Node.js. One way is to utilize the email service offered by SendGrid. The email API has a free plan, which does have a usage limit, specified on their website, but it should be enough for example purposes. To use the SendGrid Mail Service npm package, an API key is required which can be obtained by creating a new SendGrid account.
If you are having trouble creating an API key, please view the API Keys documentation provided by SendGrid. With the API key obtained, we can begin writing code that…
This post is an updated version of a previous post containing instructions on how to compile sass with the node-sass npm package, which is now deprecated.