GPS tracking implementation with ASP.NET MVC and Twilio
- Visual Studio 2019 or later.
- SQL Server Express 2019 with LocalDB support
-
First clone this repository and
cd
into itgit clone git@github.com:TwilioDevEd/eta-notifications-csharp.git cd eta-notifications-csharp
-
Rename the file
ETANotifications/Local.config.example
toETANotifications/Local.config
and update the content with your info.Be sure to replace placeholders like
your_account_SID
,your_twilio_auth_token
andyour_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 -
Build the solution
-
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.
-
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) -
Run the application
-
Check it out at http://localhost:1928
That's it!
Some application's endpoints need to be publicly accessible. We recommend using ngrok. Here's an example:
$ ngrok http 1928 -host-header="localhost:1928"
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.