Skip to content

Record HTTP interactions The Node Way™. Inspired by ruby's vcr.

License

Notifications You must be signed in to change notification settings

adilsoncarvalho/yakbak-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yakbak-docker

This container aids you to quickly cache http/https calls to any website or api and store them for further use.

It just a quick way to use the Flickr's yakbak project.

How does it work?

It works as a proxy for a given endpoint. Instead of hitting that endpoint you'll hit the url http://localhost:7000. The first call will be forwarded to the real endpoint, recording both the request and the response.

All the subsequent ones will be provided by the cached version. That's it.

Environment options

  • PROXY_PORT defaults to 7000

Commands

Quick'n'dirty run

Starts it to record and proxy further requests to the given url

docker run --rm -ti yakbak-docker https://google.com

Preserving your tapes

This is handy to allow you to share those tapes with your team. As they're just plain js files you can versionate them on git.

docker run --rm -ti -v "$(pwd):/tapes" yakbak-docker https://google.com

About

Record HTTP interactions The Node Way™. Inspired by ruby's vcr.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published