Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

TwilioDevEd/server-notifications-csharp

Repository files navigation

Twilio

Server Notifications on ASP.NET MVC

Use Twilio to send SMS alerts so that you never miss a critical issue.

Read the full tutorial here!

Local development

  1. First clone this repository and cd into its directory:

    git clone git@github.com:TwilioDevEd/server-notifications-csharp.git
    
    cd server-notifications-csharp
    
  2. Create a copy of ServerNotifications.Web/Local.config.sample and rename it to ServerNotifications.Web/Local.config.

  3. Open ServerNotifications.Web/Local.config and update the following keys:

    <appSettings>
      <add key="TwilioAccountSid" value="TWILIO_ACCOUNT_SID"/>
      <add key="TwilioAuthToken" value="TWILIO_AUTH_TOKEN"/>
      <add key="TwilioPhoneNumber" value="TWILIO_PHONE_NUMBER"/>
    </appSettings>
    

    You can find your Twilio credentials Account SID and Auth Token at https://www.twilio.com/user/account/settings

    Also, you can find a Twilio Phone Number at https://www.twilio.com/user/account/phone-numbers/incoming

  4. Open ServerNotifications.Web/App_Data/administrators.csv and update the the list of administrators accordingly to your requirements.

  5. Build the solution and run the web project. You'll receive a text shortly with details on the exception.

    That's it!

Meta

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