Swagger Editor offline installation

前端 未结 4 631
南方客
南方客 2021-01-05 03:14

Our company is using swagger to document their API\'s, currently a couple of developers are using the online swagger editor on their PC\'s.

I want to move this piec

4条回答
  •  逝去的感伤
    2021-01-05 03:59

    1. Download the one of the source releases from swagger-editor's github page (click releases link on the page)
    2. unzip the downloaded source release zip/tar file.
    3. cd into the extracted source dir, type 'npm install' (or if you have some npm mirror module installed, such as cnpm, use 'cnpm install' instead)
    4. Use a browser to open index.html file in the source dir. Or, follow official guide the 'Setup with http-server module from GitHub' section to serve from a local static web server.

    PS. You don't need to build the source code unless you want to contribute as written in the 'Contribute' section of the official document.

提交回复
热议问题