matteocusinato / verify-v2-quickstart-csharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 git@github.com: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

License:MIT License


Languages

Language:JavaScript 45.5%Language:C# 33.3%Language:CSS 15.1%Language:HTML 6.2%