├── .bowerrc ├── githubContent ├── skip.png ├── appID.png ├── envars.png ├── addNewApp.png ├── alchemy.png ├── appName.png ├── appSecret.png ├── overview.png ├── restart.png ├── settings.png ├── siteUrl.png ├── website.png ├── addPlatform.png ├── userDefined.png ├── websitePlatform.png └── architectureDiagram.png ├── public ├── images │ └── FB-f-Logo__blue_144.png └── css │ └── style.css ├── bower.json ├── manifest.yml ├── config.js ├── .gitignore ├── .cfignore ├── views ├── footer.ejs ├── header.ejs └── index.ejs ├── package.json ├── vcap-local-example.json ├── README.bmd ├── README.md ├── app.js └── LICENSE /.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "public/vendor/" 3 | } 4 | -------------------------------------------------------------------------------- /githubContent/skip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/skip.png -------------------------------------------------------------------------------- /githubContent/appID.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/appID.png -------------------------------------------------------------------------------- /githubContent/envars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/envars.png -------------------------------------------------------------------------------- /githubContent/addNewApp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/addNewApp.png -------------------------------------------------------------------------------- /githubContent/alchemy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/alchemy.png -------------------------------------------------------------------------------- /githubContent/appName.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/appName.png -------------------------------------------------------------------------------- /githubContent/appSecret.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/appSecret.png -------------------------------------------------------------------------------- /githubContent/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/overview.png -------------------------------------------------------------------------------- /githubContent/restart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/restart.png -------------------------------------------------------------------------------- /githubContent/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/settings.png -------------------------------------------------------------------------------- /githubContent/siteUrl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/siteUrl.png -------------------------------------------------------------------------------- /githubContent/website.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/website.png -------------------------------------------------------------------------------- /githubContent/addPlatform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/addPlatform.png -------------------------------------------------------------------------------- /githubContent/userDefined.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/userDefined.png -------------------------------------------------------------------------------- /githubContent/websitePlatform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/websitePlatform.png -------------------------------------------------------------------------------- /githubContent/architectureDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/githubContent/architectureDiagram.png -------------------------------------------------------------------------------- /public/images/FB-f-Logo__blue_144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/facebook-photo-analyzer/HEAD/public/images/FB-f-Logo__blue_144.png -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "box-sample-app", 3 | "version": "1.0.0", 4 | "private": false, 5 | "ignore": [ 6 | "**/.*", 7 | "node_modules", 8 | "public/vendor" 9 | ], 10 | "dependencies": { 11 | "bootstrap": "*", 12 | "jquery": "*", 13 | "angular": "*", 14 | "underscore": "*", 15 | "d3": "*", 16 | "angular-socket-io": "" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /manifest.yml: -------------------------------------------------------------------------------- 1 | --- 2 | declared-services: 3 | cloudant-photo-analyzer: 4 | label: cloudantNoSQLDB 5 | plan: Shared 6 | visual-recognition-photo-analyzer: 7 | label: watson_vision_combined 8 | plan: free 9 | applications: 10 | - name: facebook-photo-analyzer 11 | framework: node 12 | runtime: node12 13 | memory: 256M 14 | instances: 1 15 | host: facebook-photo-analyzer 16 | path: . 17 | command: node app.js 18 | services: 19 | - visual-recognition-photo-analyzer 20 | - cloudant-photo-analyzer 21 | -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- 1 | var VCAP_APPLICATION = process.env["VCAP_APPLICATION"], 2 | vcapApplication; 3 | if (VCAP_APPLICATION) { 4 | vcapApplication = JSON.parse(VCAP_APPLICATION); 5 | } 6 | 7 | module.exports = function() { 8 | return { 9 | appURL: function(port) { 10 | if (VCAP_APPLICATION) { 11 | return "https://" + vcapApplication.application_uris[0]; 12 | } 13 | else { 14 | return "http://localhost:" + port.toString(); 15 | } 16 | } 17 | }; 18 | }; 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # node-waf configuration 20 | .lock-wscript 21 | 22 | # Compiled binary addons (http://nodejs.org/api/addons.html) 23 | build/Release 24 | 25 | # Dependency directory 26 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 27 | node_modules 28 | 29 | .DS_STORE 30 | npm-debug.log 31 | vcap-local.json 32 | 33 | public/vendor/ 34 | -------------------------------------------------------------------------------- /.cfignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # node-waf configuration 20 | .lock-wscript 21 | 22 | # Compiled binary addons (http://nodejs.org/api/addons.html) 23 | build/Release 24 | 25 | # Dependency directory 26 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 27 | node_modules 28 | 29 | .DS_STORE 30 | npm-debug.log 31 | vcap-local.json 32 | vcap-local-example.json 33 | 34 | public/vendor/ 35 | -------------------------------------------------------------------------------- /views/footer.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |