![]() ![]() Our server application will send index.html file to the client. The style.css file will contain the following codes. Now that we have understood the function of our html file, let’s write the CSS file so that our webpage looks good. babelrc which will be opened in a text editor and the following text will be entered - ) Then, in our project directory, we’ll create a file named. So, the beginning of our package.json file should look like the following. Then, we’ll open the package.json file in a text editor and add the following value corresponding to the key ‘script’. Npm install -save-dev babel-cli babel-preset-env babel-preset-stage-0Ībove command will install babel-cli, babel-preset-env and babel-preset-stage-0 modules which are the dev dependencies of our project. ![]() This will install express, nodemon and socket.io modules which are the dependencies of our project. Npm install -save express nodemon socket.io Then you have to run following commands. Then you will be asked to enter various details about your application, which will be stored as a json file named ‘Package.json’. ![]() Navigate into that directory and run npm init. Step 1: First of all, open the terminal and create one directory which will be dedicated for our project. So, now we are ready to initiate our project.
0 Comments
Leave a Reply. |