What are some of the handy built in features GAE provides?
What command do you need to run to create a new project on GAE?
gcloud app create –project=
What command do you need to run to install Python on GAE?
gcloud components install app-engine-python
What are the files needed to make an app on GAE?
What is for app.yaml file for?
General configuration file for the application
What is for requirements.txt file for?
Specifies modules/libraries to install in the environment
What is for main.py file for?
The backend application code
What command do you need to deploy your app on GAE?
gcloud app deploy
What command do you need to open your app on a new browser?
gcloud app browse
What happens to instances when your app is idle?
They get spun down
What are the ways we can implement a DB as part of our app?
What are the cons of using a file-based DB such as SQLite
Not persistent
Every new instance starts back a 0
Why might you use a file-based DB such as SQLite
If youre working with static non changing content
What is Google Datastore?
A NoSQL Database
Deals with keys & values instead of tables & rows
What are the steps to use google datastore?
3. Add module to requirements.txt google-cloud-datastore==2.1.6
How do you write to google datastore?
How do you fetch from google datastore?
entity = myClient.get(‘hello’)
return entity[‘myVal’] # should return ‘world’
What DB do you use to store files?
Google Cloud Storage
How does Google Cloud Storage work?
You can a bucket for your app that can be used to store and serve files your your app
What are the steps to use google cloud storage?
1. Import the module and create a client object from google.cloud import storage client = storage.Client()
How do you fetch from google cloud storage?
What does the Client() function do?
Return a Client object that can be used to make subsequent calls to the Datastore
What are the 3 ways to split traffic?
By default, where does google redirect traffic?
To the newest version of the app