wabac
Version:
A versioned cache backed by cloud storage
47 lines (32 loc) • 1.33 kB
Markdown
[][npm]
[][npm]
[][build]
[][prettier]
[]: https://npmjs.com/wabac
[]: https://circleci.com/gh/paulmelnikow/wabac/tree/main
[]: https://prettier.io/
[]: https://lernajs.io/
A versioned cache backed by cloud storage.
```
$ npm install --save wabac
```
Follow the [Google Cloud Storage quickstart][quickstart]. In particular, you
must [set up authentication with a service account][auth] and set the
`GOOGLE_APPLICATION_CREDENTIALS` access variable.
[]: https://github.com/googleapis/nodejs-storage#quickstart
[]: https://cloud.google.com/docs/authentication/getting-started
Designate a name for your test bucket. **Be careful! The tests will destroy
this bucket.**
Create a `.env`:
```sh
GOOGLE_APPLICATION_CREDENTIALS=...
TEST_LOCATION=us-east1
TEST_PROJECT_ID=your-project-here
TEST_BUCKET_NAME=careful-because-what-you-specify-will-get-wiped-out-by-the-tests
```
This project is licensed under the MIT license.