How to setup Twilio Flex on Local system.

  1. Create account on Twilio Flex for free.
    https://www.twilio.com/flex

  2. After creating account with Twilio Flex, create a new project. 
    Screenshot 2019-06-25 at 1.25.17 PM
  3. You will find various type of project in Twilio. Select Flex option.

    Screenshot 2019-06-25 at 1.26.56 PM.png 

  4. Give name to you Twilio Flex project. Skip the next step and wait for the new Twilio Flex project to be created.

    Screenshot 2019-06-25 at 1.29.19 PM.png

  5. Twilio will give you option to select colour theme for Twilio Dashboard. Select any theme of you choice.

    Screenshot 2019-06-25 at 1.30.13 PM.png 

  6. Now your Twilio flex project is ready to be setup on your local system.

    Screenshot 2019-06-25 at 1.32.28 PM.png 

  7. Now let’s move onto setting codebase to local system. Make sure that npm and node are installed on your system.
    Refer this link for further details –
    https://www.twilio.com/docs/flex/quickstart/getting-started-plugin

    Screenshot 2019-06-25 at 1.38.39 PM.png

  8. Now in the terminal run the following commands –

    npm install -g create-flex-plugin
    create-flex-plugin plugin-sample

    This will ask for Twilio Flex Account SID. You can find it on Twilio Dashboard Console. You can find it here –

    Screenshot 2019-06-25 at 1.44.21 PM.png

  9. Now run following commands
    cd plugin-sample – this will take you to twilio flex project directory.
    npm install – this will install the dependencies required for Twilio Flex Project.
  10. Now lets run Twilio Flex project –
    npm start
    This will automatically open http://localhost:3000/
    It will ask for login credentials. Login using the credentials you already provided during registration.

    Screenshot 2019-06-25 at 2.16.50 PM.png

    You are now ready to you Twilio Flex on your local system.

  11. Local project will look something like this. We will mostly work in public and src folders.

    Screenshot 2019-06-25 at 2.19.44 PM.png

  12. We will talk about the folder structure, files and other important aspects of Twilio Flex in next section.

Leave a Reply

Your email address will not be published. Required fields are marked *