All Projects → TwilioDevEd → twiliochat-csharp

TwilioDevEd / twiliochat-csharp

Licence: other
C# implementation of Twilio Chat using ASP.NET MVC

Programming Languages

javascript
184084 projects - #8 most used programming language
C#
18002 projects
HTML
75241 projects
CSS
56736 projects
ASP.NET
160 projects
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 [email protected]: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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].