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