Skip to content

lfvilella/GCP-local-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Platform Local Development

This demo project demonstrating how to work GCP products using Python in dev env offline without need of internet.

You will find examples of using:

The project

This is a very basic project where the POST /item creates an Item in the Datastore, then schedule backgroud Cloud Tasks to update Firestore and generate a CSV that is uploaded to Cloud Storage.

The project structure consists in:

  • main.py where the HTTP handlers for the endpoints are located
  • services.py for the business rules
  • gcp_utils a package with helper methods related to Google Cloud Patform products

List of APIs:

image

Running the project locally

At the first time running the project run the command:

$ make build

Then you can start and stop the local dev running:

$ make up
$ make down

Run make help in order to get the available commands

$ make help

Once the project is running check out http://localhost:8080/docs and play with the avaliable APIs.

create_item

Deploying to GCP

$ make gcp-connect
$ make gcp-deploy
$ gcp-browse

About

Google Cloud Platform local development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published