node-practices's Introduction
Node Practices 1. node 프로젝트(application, library) 만들기 1) 프로젝트 생성: mkdir로 디렉토리 만들기 2) 프로젝트 이동: cd 프로젝트 디렉토리 3) 프로젝트 초기화: 프로젝트 메니페스트 파일(package.json)를 생성 [project-ex01]$ npm init -y 2. 패키지 - 완전한 어플리케이션(babel, webpack, nodemon, Lint, ...) - 프로젝트에서 사용하는 라이브러리 모듈(module) 3. 의존성 - 개발하는 프로젝트(애플리케이션, 라이브러리)에서 설치하는 패키지 - 일반 의존성: 개발하고 있는 프로젝트가 런타임 때 사용하는 패키지로 꼭 빌드와 배포에 포함되어야 한다. - 개발 의존성: 개발에 필요하거나 도움이 되는 패키지로 빌드와 배포에 포함 되지 않는다. 4. 패키지 설치 - 전역설치 - 지역설치 - 패키지 설치 $ npm i ejs [지역, 일반] $ npm i -D nodemon [지역, 개발] $ npm i -g gulp [전역, 일반] $ npx gulp --version - 패키지 삭제 $ npm un ejs [지역] $ npm un nodemon [지역] $ npm un -g gulp [전역] 5. Modules 1) 코어 모듈: node에서 제공하는 모듈(fs, os, process, http, ...) 2) npm 모듈: npm을 통해서 node_modules에 설치하고 사용하는 모듈 3) 파일 모듈: 파일 경로로 불러온 모듈안에 함수나 객체를 사용한다. 6. 서버 프로그래밍 잠깐 맛보기
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.