Permalink
Browse files

dev dependencies, readme tweak, sample config

  • Loading branch information...
1 parent 441ba31 commit 387fdc14507c2fd6db1716b8361e42f8e3bb28c4 @RandomEtc RandomEtc committed Mar 1, 2012
Showing with 19 additions and 6 deletions.
  1. +2 −1 .gitignore
  2. +4 −1 package.json
  3. +4 −4 readme.md
  4. +9 −0 test/config-sample.js
View
@@ -2,4 +2,5 @@ test/config.js
node_modules
nodemon-ignore
.monitor
-.idea
+.idea
+npm-debug.log
View
@@ -21,6 +21,9 @@
"dependencies": {
"log4js": "0.3.x"
},
+ "devDependencies": {
+ "express": "~2.5.0"
+ },
"engines": {
"node": ">= 0.4.x"
},
@@ -33,4 +36,4 @@
"scripts": {
"test": "node test.js"
}
-}
+}
View
@@ -131,10 +131,10 @@ Testing
To test, you need to create a config.js file in the /test directory as follows:
- exports.config = {
+ module.exports = {
"secrets" : {
- "clientId" : [YOUR_CLIENT_ID],
- "clientSecret" : [YOUR_CLIENT_SECRET],
+ "clientId" : "YOUR_CLIENT_ID",
+ "clientSecret" : "YOUR_CLIENT_SECRET",
"redirectUrl" : "http://localhost:3000/callback" // This should also be set in your OAuth profile.
}
};
@@ -168,4 +168,4 @@ Notes
This module is a read-only subset of the full Foursquare API, but further capability, (adding, posting, updating, etc),
is forthcoming. Bugs and Pull Requests are, of course, accepted! :-)
-This project is a refactoring and enhancement of: https://github.com/yikulju/Foursquare-on-node
+This project is a refactoring and enhancement of: https://github.com/yikulju/Foursquare-on-node
View
@@ -0,0 +1,9 @@
+// sign up at https://foursquare.com/oauth/register
+// copy this file to config.js and edit the values below
+module.exports = {
+ "secrets" : {
+ "clientId" : "YOUR_ID",
+ "clientSecret" : "YOUR_SECRET",
+ "redirectUrl" : "http://localhost:3000/callback" // This should also be set in your OAuth profile.
+ }
+};

0 comments on commit 387fdc1

Please sign in to comment.