Common place to host all my workshop contents
First you will have to install GIT Go to the cloudshell accessing this URL
$ sudo apt-get update
$ sudo apt-get install git
$ git --version
git version 2.9.2
Configure your Git username and email using the following commands, replacing my name with your own. These details will be associated with any commits that you create:
$ git config --global user.name "Jino Jossy"
$ git config --global user.email "[email protected]"
Now the next step is cloning my repository to pull the code changes for the excercise:
$ git clone https://github.com/jinojossy93/Workshop.git
Next step is going to the Excercise folder:
$ cd Workshop/excercise_1/
Now you are in the first excercise. You can now run the development server by using the following command
$ dev_appserver.py .
And this can be deployed to Internet by doing following commands
Replace PROJECT_ID with your ID.
$ gcloud config set project PROJECT_ID
Replace VERSION with the version you need it can be number or string or both combined.
$ gcloud app deploy . --version=VERSION
Do the same as above. It's a guest book application where the guest input is being saved to Database.
$ cd Workshop/excercise_1/
In Excercise 2 we are using Datastore as our database to store the user's input.
Find more details about Datastore here