omnia-digital / intl-tel-input-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

International telephone input validation

This project will show you one way to validate phone number inputs with the intl-tel-input library and Twilio's Lookup API. For a production use case we recommend adding phone verification, which is a best practice for collecting phone numbers from your users in order to make sure they have control of the number.

Installing

Create a .env file and add your environment variables found in the Twilio console

cp .env.example .ev

Then install the dependencies and run with npm:

npm install
npm start

Navigate to http://localhost:3000/index.html

About


Languages

Language:HTML 80.2%Language:JavaScript 13.7%Language:CSS 6.1%