This demo project demonstrating how to work GCP products using Python in dev env offline without need of internet.
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:
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.
$ make gcp-connect
$ make gcp-deploy
$ gcp-browse