This video is available to students only

Installing Lite Server

In this lesson, we're going to add lite server to our project

Installing lite server#

Now that you've got a brief understanding of TypeScript, let's set up our environment in an organized manner. Inside our terminal, let's use npm init -y to initialize our project. By doing this, we will get a package.json file in our project, which will help us manage the third party libraries. Let's get rid of the scripts-ts files, both TypeScript and JavaScript. Then let's delete the body and elements. Inside the src tag, let's rename the file name to app.js; we don't have it, so let's create it. We will create app.ts file which will compile to JavaScript by creating an app.js file.

Another thing we want is to install lite server. Inside our terminal, let's type:

Start a new discussion. All notification go to the author.