Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.71 KB

README.md

File metadata and controls

30 lines (26 loc) · 1.71 KB

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