Table of Contents

Node.js

What is node.js

특징

개발도구

Install

Install Node.js on MacOS

brew 설치

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

node 설치

$ brew install node

Install Node.js on Ubuntu

Install Vue.js

  1. Vue CLI 설치
    $ npm install -g @vue/cli
    # or
    $ yarn global add @vue/cli
    # or
    $ yarn dlx @vue/clie
    
    $ vue --version   # 확인
    $ npm list -g --depth=0   # npm 설치 리스트 확인
    </shx>
      - Vue CLI 삭제 <sxh bash>
    $ npm uninstall -g vue-cli
    
  2. vue 프로젝트 생성
    $ vue create <프로젝트 이름>
    
    $ cd <프로젝트 이름>
    $ npm run serve
    
  3. vuetify 패키지 추가
    $ vue add vuetify
    
  4. vue-router 설치
    $ vue add router
    </bash>
      - vuex 설치 <sxh bash>
    $ vue add vuex
    
  5. axios 설치
    $ vue add axios
    
· 2023/01/03 09:57 · alex

Modules

typescript

  1. 디렉토리 생성 (mkdir)
  2. 프로젝트 생성 (npm init)
  3. 타입스크립트 모듈 설치
  4. tsconfig.json 생성
  5. 타입 추가 (npm i @types/node)
  6. ts-node 설치 (npm i -g ts-node)

가상환경

JavaScript Basics

Start

$ node <file>

Node.js 내장 모듈과 객체

json-server

$ npm install -g json-server
$ json-server --watch <file>

express

$ npm install express

Useful

References