Silver Library (Archived)
nodejs 로 영상 사이트 구현하기 - EP 3 본문
[Note: from now on, this section may link to express]
What is babel? babel is a JS compiler. Basically, a tool to convert JS thing to backend like.
What is babel/preset-env? A Good source to refer this is here.
Additionally, what is ES6?
(note: some sort of template format to support each different browser to understand the JS code)
(Most conservative countries or businesses will use the legacy one. So, convert/use ES5 for this case. Otherwise, good to go for ES6. Recent one is ideal.)
After installing 'npm install @babel/preset-env', you need to edit package.json file.
The reason is; to let babel to execute the index.js file. Then it'd execute nodejs.
Function to const variable
By re-organising the existing function to const variable with arrow mark as above, this is called 'arrow function.'
If some installation 'npm install whatever' is not useful for website (regard to capacity),
then install it as 'npm install whatever -D'
This will only install in the sector of developing area. This will not be included on the git/github repository you designated (Caution advised: Not sure).
'npm install nodemon' will allows you to automatically restart the server whenever you save any file.
This is the thing not used for user nor web itself. So, better install it with '-D' after nodemon. Keep it for developer only.
'Personal DB > Unclassified record' 카테고리의 다른 글
Node.js EP 5 - routing (0) | 2021.02.19 |
---|---|
nodejs EP 4 - middleware (0) | 2021.02.19 |
Node.js 로 영상 사이트 구현하기 - EP2 (0) | 2021.02.19 |
Node.js 로 영상 사이트 구현화 하기 - EP1 (0) | 2021.02.19 |
Django - checklist : when seeding is not working (lambda) (0) | 2021.02.10 |