Skip to content

domsu/stranger-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Assistant chat written in go

This repository is a simple example of how to use Golang, Docker, Terraform and actions on google.

Stranger chat

Prerequisites

Getting started

The app consists of a service in golang, an infrastructure provided by terraform and actions on google configuration files.

Service configuration

Set the service domain in chat-service/service/Config.go. The HTTPS is provided by cert magic library.

Terraform configuration

The terraform configuration file is designed to work with google cloud. Follow this tutorial to get the JSON file with credentials and copy it to terraform/config/google_cloud_credentials.json

Check out terraform/config/outputs.tf to set the domain and your google cloud project id.

Deploying service

There are two helpful scripts available:

/scripts/depoly.sh - creates infrastructure on Google Cloud

/scripts/update.sh - builds the service, uploads binaries to virtual machine and spins up a Docker instance

Deploying actions on google

The last step is to configure actions on google. The google-actions/ contains configuration files for every supported language. You need change the service domain.

To apply the changes gactions update --action_package action.en.json --action_package action.pl.json --project {googleActionsProjectId}

About

Google Assistant chat written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published