https://github.com/tsrivishnu/jarvis
Experimental dialogue flow assistant with Ruby backend.
https://github.com/tsrivishnu/jarvis
dialogflow docker raspberry-pi ruby
Last synced: 3 months ago
JSON representation
Experimental dialogue flow assistant with Ruby backend.
- Host: GitHub
- URL: https://github.com/tsrivishnu/jarvis
- Owner: tsrivishnu
- Created: 2018-08-12T15:43:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T11:12:22.000Z (over 3 years ago)
- Last Synced: 2025-05-27T03:49:08.731Z (about 1 year ago)
- Topics: dialogflow, docker, raspberry-pi, ruby
- Language: Ruby
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jarvis
Simple ruby application to server requests from API.ai (Dialogue Flow) for the
Jarvis agent that helps me automate/control the followingstuff at home.
* DigitalOcean
* VPN server
## Setup
### Requirements
The instructions below require the following. However, this is a simple ruby app and can be run
without the below requriements.
* Docker
* [Docker compose](https://docs.docker.com/compose/)
> Note: All the instructions below assume you cloned the respository and are in the project's directory.
#### Install gems
Run the following to install the required gems:
```bash
docker-compose run app bundle install
```
#### Set configuration
Use the sample configuration file to set the required configuration variables in `config/application.yml`.
```bash
cp config/application.yml.example config/application.yml
# Edit +application.yml+ to set the correct values to the variables
```
#### SSL Certificates
Dialogflow fullfilement server backend works only with HTTPS. The NGINX for
this project it setup to serve the app via HTTPS but the certificates are to
be generated and added to the project for nginx to pick it up.
The files are to be placed in:
```bash
nginx/ssl/app.pem # Public certificate file.
nginx/ssl/app.privkey.pem # The private key for the certficate.
```
## Run the app
Once the above setup it done, you can run the app with
```bash
docker-compose up
```
This will start the web server inside the docker containers and expose it on
port `9443` of your machine. Test it with
```bash
curl https://localhost:9443
```
## General guidelines
* **Configuration values**: These can be changed as needed in the `config/application.yml` file.