Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rswrz/hapi-swagger-examples
https://github.com/rswrz/hapi-swagger-examples
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rswrz/hapi-swagger-examples
- Owner: rswrz
- Created: 2019-12-07T22:56:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-07T23:06:16.000Z (about 5 years ago)
- Last Synced: 2024-10-28T08:29:26.125Z (2 months ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hapi-swagger examples in a container
Build a node container with hapi-swagger and run examples
## clone and build
```
git clone https://github.com/rswrz/hapi-swagger-examples.git
cd hapi-swagger-examples
docker build -t hapi-swagger-examples:latest .
```## run default example simple.js
```
docker run \
--rm --publish 3000:3000 \
hapi-swagger-examples:latest
```## run other examples
```
docker run \
--rm --publish 3000:3000 \
hapi-swagger-examples:latest \
node examples/debug.js
```### Access Swagger-UI
https://localhost:3000/documentation