You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make a file called cloudbucket.js if it doesn't exist already
make a javascript class called CloudBucketWrapper
install @google-cloud/storage to use the gcp-cloud bucket via npm
write a constructor, hello method, and an isConnected method. hello should just print something (for debugging) and isConnected should do some operation that relies on the Cloud Bucket API. This operation ensures your class connects to the project's Cloud Bucket, but doesn't need to do anything more than that (don't execute a query).
export it such that the class exists as a singleton: all imports refer to the same instance of CloudBucketWrapper
Do the following: