https://github.com/hmerritt/b2lister
Simple Backblaze B2 file viewer
https://github.com/hmerritt/b2lister
Last synced: 2 months ago
JSON representation
Simple Backblaze B2 file viewer
- Host: GitHub
- URL: https://github.com/hmerritt/b2lister
- Owner: hmerritt
- Created: 2020-10-05T05:36:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T13:35:52.000Z (almost 2 years ago)
- Last Synced: 2023-08-15T14:14:28.811Z (almost 2 years ago)
- Language: JavaScript
- Homepage: https://hub.docker.com/repository/docker/hmerritt/b2lister
- Size: 597 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Backblaze B2 File Lister
Lists all contents of a b2 bucket

## API
### Settings (API keys)
1. Create `.env` file in the root api directory (where `package.json` is)
2. Add backblaze-b2 api keys into `.env` as follows;```bash
B2_KEY_ID=_api_keyid_here_
B2_KEY_APPLICATION=_api_keyapplication_here_
B2_SHOW_PRIVATE_BUCKETS=false
```3. Start server using `npm start`
### Endpoints
#### GET `/buckets`
Returns a list of buckets
#### POST `/bucket/files`
Returns a list of the buckets files
```json
Required POST data to send{
"bucket": "name_of_bucket"
}
```## Client
1. Create `.env` file in the root api directory (where `package.json` is)
2. Add api location and B2 download uri base into `.env` as follows;```bash
REACT_APP_API=http://localhost:5000
B2_DOWNLOAD_BASE_URI=https://f002.backblazeb2.com/file
```