No description
| src | ||
| .gitignore | ||
| cloudbuild.yaml | ||
| package.json | ||
| README.md | ||
| router.service | ||
| tsconfig.json | ||
Router
Handles all requests from visitors to client services, and clients to our services. Also runs the API.
Dev Enviorment
Detailed instructions on how to setup development enviroment All instructions assume you're using linux
Google Cloud SDK
- Create an environment variable for the correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" - Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.listNote: If you have apt-transport-https installed, you can use "https" instead of "http" in this step. - Import the Google Cloud public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -Troubleshooting Tip: If you are unable to get latest updates due to an expired key, obtain the latest apt-get.gpg key file. - Update and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdkNote: For additional apt-get options, such as disabling prompts or dry runs, refer to the apt-get man pages. - Run gcloud init to authenticate and select the project
gcloud init
Database Proxy
- Download the Google Cloud Proxy
- Bind the SQL instance to a port
./cloud_sql_proxy --instances=kiwahosting-2:us-east1:kiwahosting=tcp:3306 - Update port in
config.json(default is 3306)