Git Product home page Git Product logo

alchemy-cloud-d3's Introduction

alchemy-cloud-d3

A starter app using Node.js to leverage IBM Watson's Alchemy Language services to extract keywords and entities from an input URL and visualize results using D3 word cloud.

To run this code locally:

1- Clone the repository to your local space:

git clone https://github.com/joe4k/alchemy-cloud-d3.git

2- Change to alchemy-cloud-d3 directory

cd alchemy-cloud-d3

3- Edit watson/config.js to add your Watson AlchemyAPI credentials. Replace ENTER_YOUR_APIKEY_HERE with your APIkey you obtained when you created an Alchemy service on Bluemix.

vi watson/config.js

4- Install dependencies

npm install

5- Run the app locally (monitor what port it starts on)

npm start

6- Verify functionality by pointing your browser to http://localhost:$port ==> port observed in step 5

7- Enter URL to analyze and hit Analyze.

Observe generated word cloud.

To host this app to your Bluemix account (assuming you have cf installed):

1- Clone the repository to your local space:

git clone https://github.com/joe4k/alchemy-cloud-d3.git

2- Change to alchemy-cloud-d3 directory

cd alchemy-cloud-d3

3- Edit watson/config.js to add your Watson AlchemyAPI credentials. Replace ENTER_YOUR_APIKEY_HERE with your APIkey you obtained when you created an Alchemy service on Bluemix.

vi watson/config.js

4- Edit manifest.yml and change the app and host names to a unique name

vi manifest.yml ==> change name to a unique name ==> change host to a unique name

5- Push the app to Bluemix

cf api https://api.ng.bluemix.net

cf login ==> enter your Bluemix username and password

select your org and space (if you have more than one) to host your app.

cf push ==> hosts app in Bluemix

6- Verify functionality by pointing your browser to https://{yourappname}.mybluemix.net

7- Enter URL to analyze and hit Analyze.

alchemy-cloud-d3's People

Contributors

joe4k avatar sbarre avatar

Stargazers

 avatar

Watchers

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