nodejs Raiders - Chapter Configuration

nodejs this stuff, and I also whim of learning, so ah. Before reading this article please have the following skills, if not. . I'm not sure you can understand, after all, my literary talent level is limited.

Front Required Skills:

c # or java skilled +

JavaScript  skilled +

jQuery syntax skilled +

T-sql skilled +

If you do not have more than a few skills. Then this article is not for you. After all, I have a scholarship less than four hours. Well, get on, we started to learn nodejs.

 

(1) Configuration basic environment

nodejs background of what I do not bother to write, after all, a lot of good engineers online, open source community, XXXXX Wikipedia, W3XXXXX website have been written up. I copy and paste very troublesome. We skip the introduction to study the configuration.

First, download nodejs main software, the address is: http: //nodejs.cn/download/

After downloading, the next step is to install the next step, as the installation disk with your mood. Anyway, I have thrown the C drive. . It is so unprofessional. . I can ye? Slightly slightly. . .

Next, configure the environment variables, according to other authors of the blog, which is now in the new era of nodejs has integrated a lot of things, so we need to configure the environment variable ok

Environment variables are as follows

In the path of the following variables add your nodejs path (Note: The following are configured on two, do not ask why, we do not know, just like java configuration environment variables have to make it with you with, do not ask, ask is not professional)

 

 

 

 

 ok configured. Check with cmd command their nodejs

instruction

node -v

result

 

Try npm is not also in normal

instruction

asl -v

result

 

 

 

npm This directive is equivalent to nodejs official instructions to download one of various plug-ins used, the command belongs to common commands.

Of course, some areas may not be able to download the plug over the wall, you can go to taobao of nodejs open source community download plug-ins, how to go under, how to find, I think you do not need me to teach programmers.

Taobao community has written very clearly how to change their image of balabala.

 

ok this point is to get the basic configuration, this time we open the program node.exe

We write in it 

 console.log ( "hello blog Park");

FIG returns the following results

 

 

 ok js script can be executed. Environment configuration is 50% complete, double-click to give yourself a 666 bar. Such has been the beginning of the operating environment. But as people used to the VS development, there is no interface and I'm a cripple. Well. . .

Download now and the industry's popular visual code it

 

(2) Configuration popular environment

Of course, if you do not like VS kind of visual style you can skip this section.

Download https://azure.microsoft.com/zh-cn/products/visual-studio-code/

This is free of charge. . After the download is complete. . Next, next. . Next. Get.

Double-click the small icon on the desktop

 

 

 It is not open a full-page ignorant forced (good English Gangster bypass)

It does not matter, get in before we give him into the Chinese.

Click on the left side of the chart swastika

 

 

 Search language, select Simplified Chinese look at the content of the following. Figure

 

 

 

There are a install. . . Click next. After bin let you restart, obedient. Restart it. . .

After the restart you will get a Simplified Chinese interface

In search nodejs, the search will find a lot of things, after all, I was just learning new small adorable 3 hours

 So I do not know what next. Simply download a this thing

 

 

 Well, to this date, we already have a basis for the development of nodejs the environment.

 

To experiment a bit.

Click File - Open folder - Create a folder

Get

You will see your newly created file here

 

In order to explain the next few shortcut icons, these icons in my experience, the future will be frequently used

1. Create a new file, you create a new file extension is what this document will automatically become what type

2. Create a new folder hierarchy as a general use (as a majority of the estimated future differentiated services, client, interactive end, front-end folder, etc.)

 

3. Refresh

4. Folding

it is good. We click on the new file, the file name is called test.js

There will be something like the following

 

 

 

Jiang Zi to create a js file. We are here to just write js code

 console.log ( "hello blog Park");

Finished. . . . . emmmmm how to run ah. . . Well according to my understanding of Microsoft's IDE, it is estimated that F5 . Tap to try. Baidu big deal was. . .

F5 is really

The results appear in the console below

 

 Look output! ! !

Now we can use the visual code to write software nodejs code. Cool is not cool! Cool would be finished! ! !

 

To sum up

1. First download nodejs

2. Configure nodejs environment variables

3. Download the visual code

4. Download Chinese plug-ins and plug-nodejs

In fact, the entire nodejs configuration is very simple, but many bloggers and website in order to appear professional himself, plus a lot of hard practical and impractical operations as well as plug-ins. In fact, these are not our concern.

Our concern is how to configure the environment, not your plug-ins and Sao operation. We are concerned that the principles and coding style. Instead of connecting the various jumps.

Hopefully this article will give you some inspiration.

 

Well then this article on a first come here. Next content. We talk about how to do a small web front-end back-end interaction. Double-click like a friend concerned about Meme da yo (づ ¯ 3¯) づ

 

Guess you like

Origin www.cnblogs.com/minCS/p/11583371.html