Permalink
Browse files

Switch server/db to Promise

Fixes #7
  • Loading branch information...
edsu committed Jun 24, 2017
1 parent 4892faf commit 227cdd1ceefe1d1d7ee362d428816043e9916a01
Showing with 495 additions and 133 deletions.
  1. +3 −1 config/index.js
  2. 0 src/server/trends.js → config/test.json
  3. +9 −0 env.sh
  4. +288 −12 package-lock.json
  5. +9 −1 package.json
  6. +21 −18 src/server/api.js
  7. +4 −4 src/server/auth.js
  8. +47 −47 src/server/db.js
  9. +36 −0 src/server/twitter.js
  10. +47 −38 test/db.js
  11. +0 −12 test/trends.js
  12. +31 −0 test/twitter.js
@@ -1 +1,3 @@
module.exports = require('./' + (process.env.NODE_ENV || 'development') + '.json');
const jsonFile = './' + (process.env.NODE_ENV || 'development') + '.json'
module.exports = require(jsonFile)
File renamed without changes.
9 env.sh
@@ -0,0 +1,9 @@
export CONSUMER_KEY="UWhTfkDx6iUYvN1sYCCsuA"
export CONSUMER_SECRET="7D6tetpxQ3ZdyZR9FNorS3qLQn6HKyudYtSxMtH9vrA"
export ACCESS_TOKEN="14331818-M9R7wNaAojqHtVzRtCxy88OOTzGGTxQVJnh0co5W8"
export ACCESS_TOKEN_SECRET="tU2uizqdU510SCbuqCqm5Kq1veEq0g1xjRk9s3z190"
#export CONSUMER_KEY="hg25rdTcWHmy1IdrQqU63bTAC"
#export CONSUMER_SECRET="53I5vk5SLTvvqsmsi9iATpn55akrtk92RtPlY3Wc0oKzQUFnc8"
#export ACCESS_TOKEN="14331818-rzO0r7HJQDY2Xa78IjMTqHmrvGKreQOKz2fPZ1jw3"
#export ACCESS_TOKEN_SECRET="zjZt4lYNUfADcXG4Uc10RPFnwuErHIn98fwJzJXIcvLW0"
Oops, something went wrong.

0 comments on commit 227cdd1

Please sign in to comment.