Node JS
install download for win & mac : https://nodejs.org/ko/
ubuntu 18.4 LTS install NodeJS
$ sudo install npm
$ sudo install nodejs
$ mkdir HelloWebServer
$cd HelloWebServer
~/HelloWebServer$ npm init //Enter to the end
~/HelloWebServer$ vi app.js
~/HelloWebServer$ npm install --save express // --save -> add this package to package.json
주의할 점은 app.js가 있는 디렉터리에서 npm install express 명령을 실행해야 된다는 것입니다. npm install 명령을 실행하면 app.js가 있는 디렉터리에 node_modules 디렉터리가 생성됩니다. 그리고 node_modules 디렉터리 안에 express 모듈이 설치됩니다.
~$ sudo npm install -g express-generator
~$ mkdir ExampleEJS
~$ cd ExampleEJS
~/ExampleEJS$ express --ejs
express-generator를 사용하여 뼈대를 먼저 만듭니다. express-generator는 전역 모듈(-g 옵션)로 설치를 해야 합니다(윈도우에서는 sudo 명령을 사용하지 않습니다). 그리고 웹 서버 소스들이 위치할 디렉터리를 생성합니다.
EJS EXPRESS - server start
node ./bin/www
http client - postman( Chrome web browser development tools)
멀티파트 분석 모듈 formidable
$ yarn( or npm) add(or install) formidable
NodeJS 파일 업로드 구현
NodeJS JSON 이용한 request, response service
Table of Contents
- Assertion Testing
- Async Hooks
- Buffer
- C++ Addons
- C/C++ Addons - N-API
- Child Processes
- Cluster
- Command Line Options
- Console
- Crypto
- Debugger
- Deprecated APIs
- DNS
- Domain
- ECMAScript Modules
- Errors
- Events
- File System
- Globals
- HTTP
- HTTP/2
- HTTPS
- Inspector
- Internationalization
- Modules
- Net
- OS
- Path
- Performance Hooks
- Process
- Punycode
- Query Strings
- Readline
- REPL
- Stream
- String Decoder
- Timers
- TLS/SSL
- Trace Events
- TTY
- UDP/Datagram
- URL
- Utilities
- V8
- VM
- ZLIB
'my_lesson > _NodeJSmongoDB' 카테고리의 다른 글
create-react-app +react-hot-loader 사용하기 (0) | 2017.10.21 |
---|---|
React +Express + Node JS (0) | 2017.09.13 |
Atom -기본 사용법 shortcuts sftp단축키 필수packages (1) | 2017.09.07 |
Mongoose - Getting Started (Schema) (0) | 2017.08.27 |
Mongodb (0) | 2017.08.26 |
댓글