Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (20 loc) · 488 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 488 Bytes

swaggerstatic

Local web server for swagger

Run with node

npm install -g swagger-static
swagger-static

To change port or root dir

npm install -g swagger-static
swagger-static -p 1234 -d ./swaggers_dir

Run with docker

docker run -d -p 3000:3000 -v $PWD/swaggers_dir:/files keepitcool/swagger-ui-static

To change port or root dir

docker run -d -e PORT=4000 -e ROOT_DIR=/my_dir -p 4000:4000 -v $PWD/swaggers_dir:/my_dir keepitcool/swagger-ui-static