https://github.com/jbolda/mountebank-proxy-to-github
Using Go to make requests to the Github API through a mountebank proxy which allows for "caching" to improve testing.
https://github.com/jbolda/mountebank-proxy-to-github
Last synced: about 1 month ago
JSON representation
Using Go to make requests to the Github API through a mountebank proxy which allows for "caching" to improve testing.
- Host: GitHub
- URL: https://github.com/jbolda/mountebank-proxy-to-github
- Owner: jbolda
- License: mit
- Created: 2021-03-01T16:33:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-01T18:02:13.000Z (over 5 years ago)
- Last Synced: 2025-01-13T12:50:16.771Z (over 1 year ago)
- Language: Go
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mountebank-proxy-to-github
Using Go to make requests to the Github API through a mountebank proxy which allows for "caching" to improve testing performance and feedback loop.
# setup
## last run with the following
- node: `14.16.0`
- npm: `7.6.0`
- go: `1.16`
1. install nodejs packages via `npm install` (note it runs patch-package as well)
2. adjust Github PAT in `main.go` if needed, this needs the permission for `repo: public_repo`.
# setup and running
1. start mountebank proxy server with `npm run mb:configed`, leave this running
2. visit mountebank web-ui at `localhost:2525` and check the imposters page (link in the top nav)
3. run the go script in a separate terminal using `go run main.go --proxy 9999` to return the mountebank readme
4. see the results in the web-ui at `http://localhost:2525/imposters/9999`