(portuguese below)
A simple app that uses node.js and React with Material UI. It can register a comment in the left collumn textbox that will be sent to a MySQL database and it will be displayed with the SPA in the right collumn, in a list. Each one will have a Play button that streams the data from the Watson API direct to the window as a blob, and generate a local URL so it can be played, all in client side operations, for better scalation pourpouse.
Simply create a .env file in the root directory with the following data:
DB_HOST=
DB_USER=
DB_PASS=
APIKEY=
APIURL=
DB settings of you desired MySQL or local database instance, and the KEY and URL generated by IBM Watson (you can create a free account for testing)
- Install depedencies
npm install
- Run app
npm start
It will run both front and backend at the same time.
(portuguese)
Dois painéis, um formulário para adicionar o comentário a um banco de dados MySQL e uma listagem de todos os comentários com um botão para ouvir o comentário por meio do API do Watson IBM TTS
Para rodar localmente, criar o arquivo .env no / com host, usuário e senha do MySQL que irá se conectar:
DB_HOST=
DB_USER=
DB_PASS=
APIKEY=
APIURL=
- instalar dependências
npm install
- Rodar o App
npm start