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

TwilioDevEd/eta-notifications-csharp

Repository files navigation

Twilio

ETA Notifications Node. Powered by Twilio - ASP.NET MVC

GPS tracking implementation with ASP.NET MVC and Twilio

Read the full tutorial here!

Requirements

Local development

  1. First clone this repository and cd into it

    git clone git@github.com:TwilioDevEd/eta-notifications-csharp.git
    
    cd eta-notifications-csharp
    
  2. Rename the file ETANotifications/Local.config.example to ETANotifications/Local.config and update the content with your info.

    Be sure to replace placeholders like your_account_SID, your_twilio_auth_token and your_twilio_number with valid information from your Twilio Account Settings.

    For better understanding while replacing [your-ngrok-subdomain] placeholder see Exposing the application to Internet section

  3. Build the solution

  4. Open ETANotifications.Web/Migrations/Configuration.cs and update the the list of orders accordingly to your requirements.

    NOTE: You need to change the phone numbers with the ones you own so you can see the notifications.

  5. Run migrations by executing the following in the Package Manager Console

    PM> Update-Database

    (Be sure to check that your database server name matches the one from the connection string on Web.config. For reference, default values where used upon SQLServer installation)

  6. Run the application

  7. Check it out at http://localhost:1928

That's it!

Exposing the application to Internet

Some application's endpoints need to be publicly accessible. We recommend using ngrok. Here's an example:

$ ngrok http 1928 -host-header="localhost:1928"

Meta

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