Step#1: Project Setup

I won't be explaining why I am installing all these packages, This will be covered in another tutorial.

We will setup our project in such a way that we will write the code using latest javascript features ECMAScript 6 and later compile the code to ECMAScript 5 using a build process .

Let's begin by creating a new GitHub Repository by going to https://github.com/new

Enter the repository name, description, select Initialize this repository with a README , For .gitignore file, select Node and for License select MIT

After entering all the details, Click on Create repository . You will be redirected to your newly created repo, In this case it's https://github.com/dhruv-kumar-jha/code-highlight

Now, let's clone this repository to our local system by running the command in terminal git clone https://github.com/dhruv-kumar-jha/code-highlight.git

You will see a new directory with the contents of the repo, Run the command yarn init -y to initialize a new package.json file with default options.