Table of Contents
Portal Chat is a chat application that improves the overall chat experience by removing language constraints. Portal Chat provides real-time language translation so users can send and receive messages in their language of choice.
You can view the demo here
You can try the live application here Live site
To run the application locally, please follow the steps below.
- Clone the repo.
- Create a free Azure Account here or use an existing one.
- Create a free Azure Cognitive Service Translator service. Follow the steps here.
- Create an Azure SignalR Service. Follow the steps here.
- Download and install Visual Studio Code from Visual Studio Code or Visual Studio 2019 from Visual Studio.
- Open project using your Visual Studio 2019 or Visual Studio Code.
- Update local.setting.json with the following, if local.setting.json is missing create one and add the json content below and update wih your credentials.
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"AzureSignalRConnectionString": "<add your azure signalr service connection string here>",
"AzureTranslator": "<add your translator endpoint here>",
"TranslatorSubKey": "<add your translator subscription key here>",
"ResourceLocation": "<add your translator service resource location in azure here>"
},
"Host": {
"LocalHttpPort": 7071,
"CORS": "<add base url of client app>",
"CORSCredentials": true
}`
}
-
Install Azure Function core tools. Follow the steps here to install the right tools for your device Azure Function Core Tools.
-
Run Azure Function locally.
func start
- From Visual Studio, press
F5
Please refer to the demo
Distributed under the MIT License. See LICENSE
for more information.