don't stop believing

swagger editor 설치 (on Mac) 본문

Tools/Swagger

swagger editor 설치 (on Mac)

Tongchun 2017. 12. 21. 14:32

swagger 서버에 원격으로 접속해 API 문서를 작성하려면 swagger editor를 설치해야 합니다.

Mac에 swagger editor를 설치하고 원격으로 연결해봅시다.


먼저 Mac에 node를 설치합니다. node는 brew로 설치합니다.

[Mac에 Homebrew 설치]

$ brew install node

이제 node와 npm이 설치되어 있는지 버전을 확인해 봅시다.

$ node -v
v9.3.0
$ npm -v
5.6.0

이제 적당한 곳에 swagger-editor를 받습니다. 저는 Download 폴더에 받겠습니다.

$ cd ~/Download
$ git clone https://github.com/swagger-api/swagger-editor.git
$ cd swagger-editor

swagger-editor 폴더 안애서 npm을 인스톨하고 실행해 봅니다.

$ npm install
$ npm start

npm start 하면 swagger-editor가 실행됩니다.



'Tools > Swagger' 카테고리의 다른 글

Visual Studio Code에서 swagger 보기  (0) 2018.06.18
Swagger의 yaml 파일 경로 변경  (0) 2018.01.19
Ubuntu에 Swagger 설치  (0) 2017.12.20
Comments