Skip to content

haivuw/gcp-storage-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcs-bucket-upload

Google Cloud config:

[
    {
      "origin": ["*"],
      "method": ["GET", "HEAD", "PUT", "POST"],
      "responseHeader": ["Content-Type"],
      "maxAgeSeconds": 3600
    }
]
  • create and download service account json to use it below

API:

  • create env: cp .env.example .env
  • set bucket name and absolute path to GCP service account json
  • start api server: yarn start

WEB ENV:

  • cd frontend
  • create env: cp .env.example .env
  • set API URL (for signing files) and storage's public URL (for showing uploaded image).
  • start web server: yarn start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published