https://github.com/brandaoplaster/duo-bot
Creation of a chatbot with FAQ function and translation of text into another language using ruby and sinatra.
https://github.com/brandaoplaster/duo-bot
chatbots ruby sinatra
Last synced: 5 months ago
JSON representation
Creation of a chatbot with FAQ function and translation of text into another language using ruby and sinatra.
- Host: GitHub
- URL: https://github.com/brandaoplaster/duo-bot
- Owner: brandaoplaster
- License: mit
- Created: 2019-06-09T03:39:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T06:01:20.000Z (about 3 years ago)
- Last Synced: 2025-02-03T23:48:48.931Z (over 1 year ago)
- Topics: chatbots, ruby, sinatra
- Language: Ruby
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChatBot :robot:
This project is a chatbot with a FAQ function,
that allows users to store questions and answers,
and get there easily when needed.
## Functionalities
- List of questions and answers
- Inclusion of new questions
- Question removal
- Survey of questions and answers
- Search questions and answers by hashtag
- List available commands
- Translation of sentences into other languages
## Prerequisites
> You just need to have the **docker** and **docker-compose** installed on your machine.
## Configuration
To change database settings **config/database.rb**
Create a **.env** with the example.env file
- URL_API= Translation api url
- API_KEY= key for translation api
- NOT_ACTIVE_SERVICE= Tells whether the translation feature is active,
0 disabled and 1 enabled
## Getting Started
To get the app running, run the following commands:
- Build container
```
docker-compose build
```
- Installing the gems
```
docker-compose run --rm webiste bundle install
```
- Creating the database
```
docker-compose run --rm website rake db:create
```
- Generating migrate
```
docker-compose run --rm website rake db:migrate
```
- Run the tests
```
docker-compose run --rm website rspec
```
- Up service
```
docker-compose up
```
## Stack
- Ruby
- Sinatra
- Postgres
- Dialogflow
- Cloud Translation API
- Docker
- Docker compose
## challenge
Implements sentence translation functionality into other languages.
## Authors
- [brandaoplaster](https://github.com/brandaoplaster)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details