TwilioDevEd / twiliochat-csharp

C# implementation of Twilio Chat using ASP.NET MVC

Home Page:https://www.twilio.com/docs/tutorials/walkthrough/ip-chat/csharp/mvc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twilio

Important Notice

We intend to sunset the Programmable Chat API on July 25, 2022 to focus on the next generation of chat: the Twilio Conversations API. Find out about the EOL process. We have also prepared this Migration Guide to assist in the transition from Chat to Conversations.

Twilio Chat - ASP.NET MVC

C# implementation of Twilio Chat using ASP.NET MVC

Build status

Local Development

NOTE: You need a Windows environment with Visual Studio to run this project. Since this project was made using .NET Framework 4.5, it's not compatible with .NET Core, so it's mandatory to run on Windows.

  1. Clone this repository and cd into its directory:

    git clone git@github.com:TwilioDevEd/twiliochat-csharp.git
    cd twiliochat-csharp
    
  2. Create a new file TwilioChat.Web/Local.config and update the content with:

    <appSettings>
      <add key="TwilioAccountSid" value="Your Twilio Account SID" />
      <add key="TwilioApiKey" value="Your Twilio API Key" />
      <add key="TwilioApiSecret" value="Your Twilio API Secret" />
      <add key="TwilioChatServiceSid" value="Your Chat Service SID" />
    </appSettings>
    

    As usual your TwilioAccountSid can be found at https://www.twilio.com/user/account

    Your TwilioApiKey and TwilioApiSecret can be found at https://www.twilio.com/console/dev-tools/api-keys

    And finally, your TwilioChatServiceSid can be found at https://www.twilio.com/console/chat/dashboard

  3. Open the project using Visual Studio

  4. Using Visual Studio's UI, choose Build Solution from the Build menu.

  5. To run the code, click the green play button in the toolbar.

  6. Check it out at http://localhost:1398

That's it!

Tests

  1. If Test Explorer is not open, open it by choosing Test > Windows > Test Explorer from the top menu bar.
  2. Choose Run All to run the tests.

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

About

C# implementation of Twilio Chat using ASP.NET MVC

https://www.twilio.com/docs/tutorials/walkthrough/ip-chat/csharp/mvc


Languages

Language:JavaScript 64.8%Language:C# 14.6%Language:HTML 12.1%Language:CSS 8.3%Language:ASP.NET 0.2%