0.1.14 • Published 8 months ago
lincd-filebase v0.1.14
Setting environment variables
To use a FilebaseStore in your application, set the following environment variables
- AWS_ACCESS_KEY_ID - from https://console.filebase.com/keys
- AWS_SECRET_ACCESS_KEY - from https://console.filebase.com/keys
- FILEBASE_BUCKET - a freely chosen name for the bucket you want this application to store data in, could be the same as the name of the application.
Creating signed URLS.
Execute npm exec lincd-filebase sign [options]
to create signed URLS for a FileBase bucket.
These URLS allow anyone with access to the URL to download (GET) or upload (PUT) the contents of one specific object in your bucket.
Run npm exec lincd-filebase sign -- -h
to see info about the options.
Example:
yarn lincd-filebase sign -- -key mykey -secret mysecret -bucket mybucketname -name objectkey
You can then copy the resulting two URLs and use them in your application to create a FileBaseStore.