Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

setting-up.md 1.0 KiB

123456789101112131415161718192021222324252627282930313233343536
  1. # Setting up a dev environment
  2. Swagger UI includes a development server that provides hot module reloading and unminified stack traces, for easier development.
  3. ### Prerequisites
  4. - git, any version
  5. - NPM 6.x
  6. Generally, we recommend following guidelines from [Node.js Releases](https://nodejs.org/en/about/releases/) to only use Active LTS or Maintenance LTS releases.
  7. Current Node.js Active LTS:
  8. - Node.js 12.x
  9. - NPM 6.x
  10. Current Node.js Maintenance LTS:
  11. - Node.js 10.x
  12. - NPM 6.x
  13. Unsupported Node.js LTS that should still work:
  14. - Node.js 8.13.0 or greater
  15. - NPM 6.x
  16. ### Steps
  17. 1. `git clone https://github.com/swagger-api/swagger-ui.git`
  18. 2. `cd swagger-ui`
  19. 3. `npm install`
  20. 4. `npm run dev`
  21. 5. Wait a bit
  22. 6. Open http://localhost:3200/
  23. ## Bonus points
  24. - 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.
  25. - The linter runs as part of the PR test sequence, so don't think you can get away with not paying attention to it!