la-template
This project was bootstrapped with Telefonica's Living app generator.
Dependencies:
- node 14
- docker & docker-compose
Quick start
Complete config.env file with your configuration secrets
Install npm dependencies: make install
Check available commands: make help:
Usage: make <command>
Commands:
install: install all dependencies.
dev-dialogs: run dialogs on aura-mini-bot.
pack-dialogs: generate dialogs package.
install-dialogs: install dialogs dependencies.
tunnel: create SSH tunnel using ngrok & uptate azure bot endpoint.
dev-stb: run set-top-box-haac web server.
dev-stb-mock: run set-top-box-haac web server using mocked aura client.
launch-stb: launch local set-top-box-haac web application to STB.
install-stb: install set-top-box-haac web application dependencies.
build-stb: build set-top-box-haac web application.
build-stb-mock: build set-top-box-haac web application using mocked aura client.
dev-mh: run movistar-home web server.
dev-mh-mock: run movistar-home web server using mocked aura client.
install-mh: install movistar-home web application dependencies.
build-mh: build movistar-home web application.
build-mh-mock: build movistar-home web application using mocked aura client.
Dialogs and SSH tunnel
Command make dev-dialogs will build your dialogs and run them on aura-mini-bot using docker.
aura-mini-bot uses Microsoft DirectLine to exchange messages with client applications. You'll need to expose your host to Microsoft Azure:
run make tunnel, navigate to https://microsoft.com/devicelogin and use the code given by the command.
After login, this command will use ngrok service and update your azure bot endpoint url.
Webapps
Use make dev-stb and make dev-mh to run your webapps and comunicate with your dialogs using Azure Direct Line.
For development, use make dev-stb-mockand make dev-mh-mock to use a mocked version of Aura Client.
Configure your responses at webapps/common/mocks/index.ts
Lean more
Docs: http://docs-beta-living-apps.apps-dev.tid.es/