Code Monkey home page Code Monkey logo

fullcontactapp's Introduction

Full Contact App

Start nginx

docker run --name hs-demo-nginx \
   -v $PWD/static:/usr/share/nginx/html:ro \
   -v $PWD/conf.`d:/etc/nginx/conf.d:ro \
   -p 80 \
   -p 443 \
   -d nginx

Verify by going to

open http://$(docker port hs-demo-nginx 80)/hs_stream_demo.html

Create the tunnel

This is required for the content source demo as Hootsuite needs to verify access the image to be loaded into ow.ly

docker run --name hs-demo-ngrok \
    -p 4040 \
    --link hs-demo-nginx:http \
    -d wernight/ngrok ngrok http hs-demo-nginx:80

Get the ngrok URL

curl -Ls $(docker port fullcontactapp_ngrok_1 4040)/api/tunnels/command_line | python -c 'import sys, json; print json.load(sys.stdin)["public_url"]'

Verify:

open $(curl -Ls $(docker port fullcontactapp_ngrok_1 4040)/api/tunnels/command_line | python -c 'import sys, json; print json.load(sys.stdin)["public_url"]')/hs_stream_demo.html

View the traffic

open http://$(docker port hs-demo-ngrok 4040)

Edit assets/js/vars.js and set the publicHostname to the ngork url

Configure

Go to Hootsuite Developer portal https://hootsuite.com/developers/my-apps

Create a New App, set the name and description and press Create.

Click on the new App link. Click the Edit button.

Set the Authentication Type to Single Sign On and set the shared secret to: hsdemosharedsecret and press Save.

Click New App Component. Select App Component Type of Stream, set the App Component Title and press Add.

For the new stream App Component click on the Edit button and set

IFrame URL: /hs_stream_demo.html Icon URL: /asset/icon.png

Press the Save button.

Add a New App Component with Type Plugin

IFrame URL: /hs_plugin_demo.html Icon URL: /asset/icon.png

Add a New App Component with Type Content Source

IFrame URL: /content_source_demo.html Icon URL: /asset/icon.png

Add the App to Hootsuite

Open Hootsuite https://hootsuite.com/dashboard

Click on the App Directory in the left hand nav. Under Developers -> My Apps install your new App, adding to a new stream.

fullcontactapp's People

Contributors

alextyk avatar

Watchers

James Cloos 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.