Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

API-Gateway to ingest documents to Google Cloud Storage

Notifications You must be signed in to change notification settings

mathaip/API-Gateway

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run locally:

  1. cd app/
  2. remove 'from app' part on line 1 of 'from app import gcs, schemas' so its just 'import gcs, schemas'
  3. point service-account location on line 46 a local service account json file eg. service_account = '../service-account'
  4. uvicorn main:app --reload

To deploy to Cloud Run

  1. Undo the changes in part 2 and 3 of To run locally
  2. make sure you're in the root dir
  3. run sh deploy.sh

To deploy changes to api config on an exisiting API Gateway:

  1. gcloud beta api-gateway api-configs create 'CONFIG_NAME' --api=api-gateway --openapi-spec=openapi2-spec.yaml --project=halcyonsw --backend-auth-service-account=api-config@halcyonsw.iam.gserviceaccount.com

  2. gcloud beta api-gateway gateways update halcyon-api-gateway --api=api-gateway --api-config='CONFIG_NAME' --location=us-central1 --project=halcyonsw

About

API-Gateway to ingest documents to Google Cloud Storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.