diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 2996905..0000000 --- a/.babelrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "presets":[ - "node6" - ] -} \ No newline at end of file diff --git a/config.js b/config.js deleted file mode 100644 index ff5ee86..0000000 --- a/config.js +++ /dev/null @@ -1,59 +0,0 @@ -require('dotenv').config(); - -var config = {}; - config.twitter = {}; - config.twitter.consumer_key = process.env.TWITTER_CONSUMER_KEY; - config.twitter.consumer_secret = process.env.TWITTER_CONSUMER_SECRET; - config.twitter.access_token_key = process.env.TWITTER_ACCESS_TOKEN_KEY; - config.twitter.access_token_secret = process.env.TWITTER_ACCESS_TOKEN_SECRET; - - config.fb = {}; - config.fb.app_id = process.env.FACEBOOK_APP_ID; - config.fb.app_secret = process.env.FACEBOOK_APP_SECRET; - config.fb.access_token = process.env.FACEBOOK_ACCESS_TOKEN; - - config.flickr = {}; - config.flickr.consumer_key = process.env.FLICKR_CONSUMER_KEY; - config.flickr.consumer_secret = process.env.FLICKR_CONSUMER_SECRET; - config.flickr.access_token = process.env.FLICKR_ACCESS_TOKEN; - config.flickr.access_token_secret = process.env.FLICKR_ACESS_TOKEN_SECRET; - - config.spotify = {}; - config.spotify.client_id = process.env.SPOTIFY_CLIENT_ID; - config.spotify.client_secret = process.env.SPOTIFY_CLIENT_SECRET; - config.spotify.callback = process.env.CALLBACK_URL; - - config.youtube = {}; - config.youtube.api_key = process.env.YOUTUBE_API_KEY; - config.youtube.client_id = process.env.YOUTUBE_CLIENT_ID; - config.youtube.client_secret = process.env.YOUTUBE_CLIENT_SECRET; - config.youtube.access_token = process.env.YOUTUBE_ACCESS_TOKEN; - config.youtube.refresh_token = process.env.YOUTUBE_REFRESH_TOKEN; - //config.youtube.code = process.env.YOUTUBE_CODE; - config.youtube.callback = process.env.CALLBACK_URL; - - config.reddit = {}; - config.reddit.client_id = process.env.REDDIT_CLIENT_ID; - config.reddit.client_secret = process.env.REDDIT_CLIENT_SECRET; - config.reddit.userAgent = process.env.REDDIT_USERAGENT; - config.reddit.username = process.env.REDDIT_USERNAME; - config.reddit.password = process.env.REDDIT_PASSWORD; - - config.weibo = {}; - config.weibo.app_key = process.env.WEIBO_APP_KEY; - config.weibo.app_secret = process.env.WEIBO_APP_SECRET; - config.weibo.access_token = process.env.WEIBO_ACCESS_TOKEN; - config.weibo.callback = process.env.WEIBO_CALLBACK_URL; - - config.tumblr = {}; - config.tumblr.consumer_key = process.env.TUMBLR_CONSUMER_KEY; - config.tumblr.comsumer_secret = process.env.TUMBLR_CONSUMER_SECRET; - config.tumblr.access_token = process.env.TUMBLR_ACCESS_TOKEN; - config.tumblr.access_token_secret = process.env.ACCESS_TOKEN_SECRET; - - config.pinterest = {}; - config.pinterest.access_token_key = process.env.PINTEREST_ACCESS_TOKEN; - - config.instagram = {}; - config.instagram.access_token_key = process.env.INSTAGRAM_ACCESS_TOKEN_KEY; -module.exports = config; diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css deleted file mode 100644 index 9453385..0000000 --- a/public/stylesheets/style.css +++ /dev/null @@ -1,8 +0,0 @@ -body { - padding: 50px; - font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; -} - -a { - color: #00B7FF; -} diff --git a/routes/index.js b/routes/index.js deleted file mode 100644 index ecca96a..0000000 --- a/routes/index.js +++ /dev/null @@ -1,9 +0,0 @@ -var express = require('express'); -var router = express.Router(); - -/* GET home page. */ -router.get('/', function(req, res, next) { - res.render('index', { title: 'Express' }); -}); - -module.exports = router; diff --git a/routes/instagram.js b/routes/instagram.js deleted file mode 100644 index e6bb5ae..0000000 --- a/routes/instagram.js +++ /dev/null @@ -1,31 +0,0 @@ -var express = require('express'); -var router = express.Router(); -var config = require('../config'); -var request = require('request'); - -var access_token = config.instagram.access_token_key; -var client_id = config.instagram.client_id; -var client_secret = config.instagram.client_secret; - -var queryUrl = 'https://api.pinterest.com/v1/me/search/boards/?query=kobe+bryant&access_token=AcXsKcuUy0Pcv1hcgX2IaLbqZezGFLSJHd9YFb9D7ZpX7SA_wgAAAAA&fields=id%2Cname%2Curl%2Ccounts%2Ccreated_at%2Ccreator%2Cdescription%2Cimage%2Cprivacy%2Creason' -var options = { - method: 'GET', - uri: queryUrl, -}; - -router.get('/', function(req, res, next) { - console.log(queryUrl); - request(options, function(error, response){ - if(error) { - console.log("Reuqest error") - res.send(error) - } - - if(response) { - console.log("send response data back") - res.send(JSON.parse(response.body)) - } - }); -}); - -module.exports = router; diff --git a/routes/users.js b/routes/users.js deleted file mode 100644 index 623e430..0000000 --- a/routes/users.js +++ /dev/null @@ -1,9 +0,0 @@ -var express = require('express'); -var router = express.Router(); - -/* GET users listing. */ -router.get('/', function(req, res, next) { - res.send('respond with a resource'); -}); - -module.exports = router; diff --git a/views/error.pug b/views/error.pug deleted file mode 100644 index 51ec12c..0000000 --- a/views/error.pug +++ /dev/null @@ -1,6 +0,0 @@ -extends layout - -block content - h1= message - h2= error.status - pre #{error.stack} diff --git a/views/index.pug b/views/index.pug deleted file mode 100644 index 3d63b9a..0000000 --- a/views/index.pug +++ /dev/null @@ -1,5 +0,0 @@ -extends layout - -block content - h1= title - p Welcome to #{title} diff --git a/views/layout.pug b/views/layout.pug deleted file mode 100644 index 15af079..0000000 --- a/views/layout.pug +++ /dev/null @@ -1,7 +0,0 @@ -doctype html -html - head - title= title - link(rel='stylesheet', href='/stylesheets/style.css') - body - block content