GithubHelp home page GithubHelp logo

hieuh0 / account-verification-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twiliodeved/account-verification-node

0.0 0.0 0.0 1.33 MB

example app demonstrating account verification in Node using Authy

Home Page: https://www.twilio.com/docs/tutorials/walkthrough/account-verification/node/express

License: Other

JavaScript 26.27% HTML 72.73% CSS 1.00%

account-verification-node's Introduction

Twilio

User Account Verification with Node.js/Express and Twilio

Build Status

When a new user signs up for your application, you want to make sure their contact information is accurate. You also like to have some assurance they are in fact a human being! You want to make sure that every new user account in your system is an actual person you can serve.

View the full tutorial here!

Local Development

This project is build using Node.js and depends on MongoDB.

  1. First clone this repository and cd into it.

    git clone [email protected]:TwilioDevEd/account-verification-node.git
    cd account-verification-node
  2. Copy the sample configuration file and edit it to match your configuration.

    cp .env.example .env

    You can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN in your Twilio Account Settings.

    You will also need a TWILIO_NUMBER, which you may find in the Twilio phone numbers console.

    The AUTHY_API_KEY can be found in the Authy dashboard.

    Leave MONGO_URL with the default value of mongodb://localhost/account-verification.

  3. Start the server.

    npm start
  4. Check it out at http://localhost:3000.

Docker Local Development

  1. Make sure Docker and docker-compose are installed.

  2. Set TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_NUMBER and AUTHY_API_KEY configuration variables as explained above.

  3. Build the containers with:

docker-compose build
  1. Get the name of the Mongo container with:
docker-compose ps

Then set the MONGO_URL configuration variable in .env to mongodb://{mongo-container-name}/account-verification.

  1. Remove the project's node_modules folder.

  2. Finally, run the following commands to start your Docker containers.

    docker-compose up -d
  3. Check it out at http://localhost:3000.

Meta

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

account-verification-node's People

Contributors

acamino avatar atbaker avatar brodan avatar hortega avatar jarodreyes avatar kathyguerron avatar kwhinnery avatar mjabali avatar mosampaio avatar nebtrx avatar smendes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.