Skip to content

Instantly share code, notes, and snippets.

@cybersamx
Created September 29, 2014 22:56
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cybersamx/e43eb5aabda562b9f62c to your computer and use it in GitHub Desktop.
Save cybersamx/e43eb5aabda562b9f62c to your computer and use it in GitHub Desktop.
Installing SwaggerUI

Steps for installing SwaggerUI on the Mac

  1. Clone SwaggerUI project
$ git clone git@github.com:wordnik/swagger-ui.git
  1. Install nginx (optioinal)
$ brew install nginx
$ brew info nginx  # Get info on where files are located
  1. Edit nginx.conf
$ vi /usr/local/etc/nginx/nginx.conf
server {
  # ....
  
  location /api {
    alias /Users/schow/Code/src/os/swagger-ui/dist;
  }
  
  # ...
}
  1. Launch nginx
$ nginx
  1. Go to URL on the web browser: http://localhost:8080/api

References

  1. SwaggerUI - https://github.com/wordnik/swagger-ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment