Google Cloud Functions example showing how to upload file using node-formidable into Google Cloude Storage.
-
Install the gcloud tool
-
Create a project in Google Cloud Platform
-
Enable Google Cloud Storage and Functions
-
Create a bucket or use an existing one
-
Clone this project or take the code you need
-
Install dependencies
npm install
-
Deploy to Google Cloud Functions:
gcloud beta functions deploy upload --stage-bucket [CLOUD-BUCKET-NAME] --trigger-http