Coder Social home page Coder Social logo

lahacks2020's Introduction

Twilio

Twilio Chat - Node

Build Status

Node.js | Express implementation of Twilio Chat

Local Development

  1. First clone this repository and cd into its directory:

    git clone https://github.com/TwilioDevEd/twiliochat-node.git \
    cd twiliochat-node
  2. Install project's dependencies:

    npm install
  3. Copy the sample configuration file and edit it to match your configuration.

    cp .env.example .env

You can find your TWILIO_ACCOUNT_SID in your Twilio Account Settings.

For TWILIO_API_KEY and TWILIO_API_SECRET you need to go to API Keys in the console. There youl'll be able to create a new API key obtaining the two required values.

For TWILIO_CHAT_SERVICE_SID you can go to the Programmable Chat dashboard, where you must create a Chat Messaging Service. When the service is created you'll have access to the service's SID.

  1. Start the development server on http://localhost:3000

    npm start

Expose your localhost to the internet

If you want your chat application to be reachable publicly in the internet, you can use a service like ngrok.

  1. Expose the application to the wider Internet

    ngrok http 3000

Run the tests

  1. Run backend tests

    npm test
  2. Run javascript tests:

    cd public \
    npm install \
    npm test

Meta

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

lahacks2020's People

Contributors

nebtrx avatar jefflinwood avatar joliveros avatar michelemurakami avatar casprice avatar angelaliuu avatar po5i avatar jarodreyes avatar shyba avatar acamino avatar mcelicalderon avatar smendes avatar well1791 avatar juancarlospaco avatar shailaja93 avatar

Watchers

 avatar  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.