Skip to content

matteocusinato/verify-v2-quickstart-csharp

 
 

Repository files navigation

Twilio

This application example demonstrates how to do Simple phone verification with C# ASP.NET Core MVC, and Twilio Verify.

build status

We are currently in the process of updating this sample template. If you are encountering any issues with the sample, please open an issue at github.com/twilio-labs/code-exchange/issues and we'll try to help you.

Local Development

  1. First clone this repository and cd into it.

    $ git clone [email protected]:TwilioDevEd/verify-v2-quickstart-csharp.git
    $ cd verify-v2-quickstart-csharp/VerifyV2Quickstart/
  2. Create a new file twilio.json and update the content.

    {
      "Twilio": {
        "AccountSid": "Your Twilio Account SID",
        "AuthToken": "Your Twilio Auth Token",
        "VerificationSid": "Your Verify Service SID"
      }
    }
  3. Build the solution dotnet build.

  4. Run dotnet ef database update to create the local DB.

  5. Run the application dotnet run.

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

That's it!

Run unit tests

  1. cd into VerifyV2Quickstart.Tests project

    cd verify-v2-quickstart-csharp/VerifyV2Quickstart.Tests

  2. Run tests

    dotnet test

Meta

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 45.4%
  • C# 33.3%
  • CSS 15.1%
  • HTML 6.2%