@ideabox/cloud-drive v1.0.4
cloud-drive
Create pool cloud storage using multiple service account
Setup
To run this setup you should have a google account.
Note: Setup script would only run on cloud shell
, after retriving masterKey file example can be executed on local machine.
- Login to Google Cloud Console
- Open
cloud shell
, see the below image. - Clone this repo:
git clone https://github.com/Tilak999/cloud-drive.git
- Run setup script:
cd cloud-drive && node main.js
- Wait for script to finish (It would take 10-15 mins to finish)
- You will get a master key file which contains all the service account keys. (Download and keep it safe)
Run Examples
You will find some sample scripts under scripts
directory. To run the scripts run them from root of the repo directory.
cd cloud-drive
npm install
node scripts\storageQuota.js
CLI Tool
We also have a CLI tool called gfs - for interacting with the pooled cloud storage. See CLI usage
Web UI
To run the Web UI locally, you need to setup heroku account and add free postgres database to project.
export DATABASE_URL variable in the commandline and run npm run dev
About master key file
The master key file is nothing but collection of all the service account keys. Inside the json each service account key is mapped to corresponding service account file name. If you need to get the service account key files then they are present under keys
directory.