Swagger Editor offline installation

druidoodle picture druidoodle · Nov 7, 2017 · Viewed 19.4k times · Source

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 piece of the design process into our standard development environment, which is in a walled garden without internet access.

How do I go about installing npm and the swagger editor in an offline environment?

There are options to use either RHEL or Windows machines, although Windows is preferable as developers have local admin rights

Answer

Akzhan Abdulin picture Akzhan Abdulin · Nov 7, 2017

In short answer is https://swagger.io/docs/swagger-tools/#swagger-editor

git clone https://github.com/swagger-api/swagger-editor.git
cd swagger-editor
npm install
npm run build
npm start

And it will works in your Intranet OK.