Setting up a dev environment
Swagger UI includes a development server that provides hot module reloading and unminified stack traces, for easier development.
Generally, we recommend following guidelines from Node.js Releases to only use Active LTS or Maintenance LTS releases.
Current Node.js Active LTS:
Current Node.js Maintenance LTS:
Unsupported Node.js LTS that should still work:
- Node.js 8.13.0 or greater
- NPM 6.x
git clone https://github.com/swagger-api/swagger-ui.git
npm run dev
- Wait a bit
- Open http://localhost:3200/
- Swagger UI includes an ESLint rule definition. If you use a graphical editor, consider installing an ESLint plugin, which will point out syntax and style errors for you as you code.
- The linter runs as part of the PR test sequence, so don't think you can get away with not paying attention to it!