Commit Graph

224 Commits (4ac97bef4d4527437b949998faf3f05af72ec8f2)

Author SHA1 Message Date
Sahat Yalkabov 0f3eb15d72 Added "Compose New Tweet" form on Twitter API demo 2014-05-29 18:29:16 -04:00
Sahat Yalkabov 754789e085 Added yahoo api example 2014-05-13 01:35:46 -04:00
Sahat Yalkabov 4381743358 Removed underscore "require" from app.js. No longer used. 2014-05-06 01:21:48 -04:00
Sahat Yalkabov 9e90ccb3e6 CSRF refactoring 2014-05-06 00:44:30 -04:00
Sahat Yalkabov 5ce1cb4444 Removed unused POST route for instagram api example 2014-04-30 00:02:05 -04:00
Sahat Yalkabov fc55e385e4 Added Instagram authentication 2014-04-22 15:00:27 -04:00
Sahat Yalkabov 0440635fb0 Code refactoring 2014-04-21 16:51:43 -04:00
Sahat Yalkabov 4621ecd56c Removed connect-favicon middleware 2014-04-21 16:42:22 -04:00
Sahat Yalkabov 347b757782 Removed 404 error handler and 404 page 2014-04-21 16:41:26 -04:00
Sahat Yalkabov 429fc5a8ac Code cleanup, updated README packages table 2014-04-18 14:37:06 -04:00
Sahat Yalkabov d5f5bd185d Swapped connect-csrf for lusca and added conditional csrf 2014-04-18 14:29:30 -04:00
Sahat Yalkabov 05f825d3c8 Removed PayPal API 2014-04-14 17:58:49 -04:00
Sahat Yalkabov 2dae0ee0ab Only two Stripe routes: GET and POST /api/stripe 2014-04-14 16:58:08 -04:00
Sahat Yalkabov b9fee1cb35 Merge branch 'master' of https://github.com/tmcpro/hackathon-starter
# By Tyler McIntyre
# Via Tyler McIntyre
* 'master' of https://github.com/tmcpro/hackathon-starter:
  Added to Readme file
  Stripe API finished
  stripe API added

Conflicts:
	package.json
	views/api/index.jade
2014-04-14 16:15:46 -04:00
Sahat Yalkabov 8fc3899def Updated caching time variables 2014-04-12 14:17:37 -04:00
Sahat Yalkabov 2103163428 Upgraded Hackathon Starter to Express 4 2014-04-12 12:43:07 -04:00
Tyler McIntyre 5c51aab076 Stripe API finished 2014-03-31 17:14:15 -04:00
Tyler McIntyre dfc5a2c435 stripe API added 2014-03-31 16:00:51 -04:00
Sahat Yalkabov 0151ff130f Removed favicon middleware
For reference: https://github.com/visionmedia/express/issues/1979
2014-03-30 15:43:53 -04:00
Sahat Yalkabov 963c07e999 Merge pull request #115 from ammit/patch-1
Minor Updates
2014-03-28 19:08:01 -04:00
Brian Ridings 05f7191c19 Change token to _csrf 2014-03-28 10:37:16 -04:00
Ammit b6f3dc9620 use app.get('env') 2014-03-28 03:12:57 +05:30
Ammit e659018576 Update returnTo middleware
by default express doesn't do case sensitive routing, so `/login` & '/LogIn' are treated same.
2014-03-28 03:03:04 +05:30
Sahat Yalkabov 727983e1ae Added environment variables. Fixes #100 2014-03-13 16:33:56 -04:00
Sahat Yalkabov b82cef30b7 Redirect back to original destination after a successful sign-in via OAuth 2014-03-08 14:58:27 -05:00
Sahat Yalkabov c2cda88433 Merged forgot/reset controllers into user controller 2014-03-07 14:08:56 -05:00
Sahat Yalkabov 007d561d88 Merge branch 'master' of https://github.com/mediaburst/hackathon-starter into mediaburst-master
* 'master' of https://github.com/mediaburst/hackathon-starter:
  Update README.md
  Using the newest clockwork npm package
  Removed commentted out lines from clockwork.jade
  Tweak to the clockwork view
  Adding clockwork SMS to the API mix

Conflicts:
	controllers/api.js
	package.json
2014-02-27 19:27:11 -05:00
Sahat Yalkabov 933c79e15b Added isAuthenticated and isAuthorized on LinkedIn 2014-02-27 17:56:46 -05:00
Sahat Yalkabov f80546bf84 Add LinkedIn API example route and controller 2014-02-27 14:48:09 -05:00
Sahat Yalkabov 1bb2fd89a4 Updated LinkedIn auth routes to include mandatory "state" object 2014-02-27 13:14:09 -05:00
Matt Roberts a76a500d76 Using the newest clockwork npm package 2014-02-27 16:34:45 +00:00
Sahat Yalkabov b09223a0cc Add linkedin /auth and /auth/callback routes 2014-02-27 11:28:31 -05:00
Matt Roberts c78085b73e Merge remote-tracking branch 'upstream/master'
Conflicts:
	package.json
2014-02-27 16:16:13 +00:00
Sahat Yalkabov 88b3da68c6 Changed mongoStore db property to url 2014-02-26 02:35:57 -05:00
Sahat Yalkabov 5dddb91621 Code refactoring 2014-02-25 22:39:28 -05:00
Weston Platter 3dc900b725 bring in basic controller testing. NOTE: changes solve Mongo Session issue,
Error: Error setting TTL index on collection : sessions
    at /Users/weston/git/hackathon-starter/node_modules/connect-mongo/lib/connect-mongo.js:161:23
    at /Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1404:28
    at /Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1542:30
    at /Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/cursor.js:159:22
    at commandHandler (/Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/cursor.js:678:48)
    at /Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1806:9
2014-02-24 23:15:55 -07:00
Matt Roberts babcdd3afe Adding clockwork SMS to the API mix 2014-02-24 11:25:51 +00:00
Sahat Yalkabov 43df13b12a Update connect-assets to v3.0-beta1 2014-02-21 17:29:06 -05:00
Sahat Yalkabov bde061debf Removed user _id from reset route. Use only token value. It's random enough that you don't need to include user id as well. 2014-02-17 20:46:21 -05:00
Dan Stroot 1faf279877 Added complete password reset function 2014-02-17 10:00:43 -08:00
Sahat Yalkabov 4bc0642a48 Removed console.log from venmo success callback 2014-02-11 08:31:56 -05:00
Sahat Yalkabov 5275607bdb Add send a payment form, route and controller for Venmo API 2014-02-10 23:55:32 -05:00
Sahat Yalkabov 81d4712ba9 Get profile data in getVenmo controller 2014-02-10 20:59:39 -05:00
Sahat Yalkabov 45613cda0e Add venmo authorize, callback and API urls, and a corresponding Venmo controller 2014-02-10 19:21:54 -05:00
Cheng Zhou ed70466c43 introduce configurable login providers to selectively show/hide different login methods 2014-02-06 21:52:49 -06:00
Sahat Yalkabov a34dabbc68 Added Twilio POST route and controller 2014-02-06 08:09:54 -05:00
Sahat Yalkabov 41cfc59cda Added Twilio API template, controller and route; + twilio library. 2014-02-06 07:46:47 -05:00
Sahat Yalkabov 5aadeed73a Re-arranged routes, added comment blocks 2014-02-05 19:57:29 -05:00
Sahat Yalkabov a2f4ffbf2b Merge branch 'master' of https://github.com/KarlJakober/hackathon-starter into KarlJakober-master
* 'master' of https://github.com/KarlJakober/hackathon-starter:
  removes steam auth, sets up steam api requests in async
2014-02-05 17:13:43 -05:00
Karl Jakober 1687440588 removes steam auth, sets up steam api requests in async 2014-02-05 21:04:02 +00:00
Sahat Yalkabov 20621d535d Merge branch 'master' of https://github.com/KarlJakober/hackathon-starter into KarlJakober-master
* 'master' of https://github.com/KarlJakober/hackathon-starter:
  Adds Steam auth and API
2014-02-05 12:26:23 -05:00
Karl Jakober aa36ad9fbb Adds Steam auth and API 2014-02-05 16:37:48 +00:00
Dan Stroot 7121cbfe83 Better approach to Twitter email and Facebook location 2014-02-04 08:23:52 -08:00
Brian Ridings ba1916c7d3 Removed extra app.use(express.csrf()); 2014-02-03 13:31:04 -05:00
Brian Ridings 8f0e61c26b Removed dynamicHelpers comment 2014-02-03 13:27:06 -05:00
Brian Ridings ae2c6f7dce Merge pull request #1 from GeneralZero/master
Changed Views to accept CSRF token
2014-02-03 10:10:43 -08:00
Brian Ridings c99c8fe1f8 Changed Views to accept CSRF token 2014-02-03 13:08:34 -05:00
Brian Ridings f9ec861151 Added CSRF Protection to all form views 2014-02-03 13:02:24 -05:00
Brian Ridings 8c0981a1d6 Move session secret in to config Secret file 2014-02-03 12:21:41 -05:00
Brian Ridings 71f05d2852 Add CSRF Security measures on login forms
just added the csrf middleware
2014-02-03 11:33:55 -05:00
Sahat Yalkabov 924a030c2c Remove res.locals.cacheBuster. Cache busting is done by connect-assets 2014-02-03 09:28:38 -05:00
Sahat Yalkabov cb6781aec6 Removed less middleware 2014-02-03 09:16:20 -05:00
Sahat Yalkabov 81534d6d63 Add support for assets concatenation and minification 2014-02-03 08:34:12 -05:00
Sahat Yalkabov 7b0faee208 MongoDB connection error printed out with a console.error() instead of console.log() with a red method to make control the text color 2014-02-03 07:36:55 -05:00
Sahat Yalkabov 81d30c2925 Return 404 status on a 404 page. Fixed #33 2014-02-02 06:11:22 -05:00
Sahat Yalkabov 1db2daa01a Removed redundant req.assert for empty email
Swapped code order of a few things in app.js to make it more consistent in terms of coding style
2014-02-02 05:38:38 -05:00
Sahat Yalkabov e820b9f02a Separated routes into 3 categories with comments explaining which is which instead of having one giant block of routes. 2014-02-01 03:30:14 -05:00
Sahat Yalkabov 6557f72d99 Added isAuthorized middleware to twitter and facebook api example routes 2014-01-30 18:49:36 -05:00
Sahat Yalkabov 9f8caca659 Add auto_reconnect option to connect-mongo middleware 2014-01-30 04:22:35 -05:00
Sahat Yalkabov dae13cbc4b connect-mongo will now use existing mongoose connection 2014-01-30 04:19:33 -05:00
Sahat Yalkabov b9d3ec8463 Add friendlier variables for cache time: hour, day, week, month instead of a large number in milliseconds 2014-01-30 04:18:34 -05:00
Sahat Yalkabov d31c00ec0e Add mode type to console.log when you start the server 2014-01-30 04:16:50 -05:00
Sahat Yalkabov 9596ac6a48 Placed app = express() right after module dependencies 2014-01-30 03:05:14 -05:00
Sahat Yalkabov f80c890287 Added connect-mongo for storing sessions in the MongoDB database instead of memory 2014-01-29 00:49:09 -05:00
Sahat Yalkabov e541ac0793 Removed forgot_password URLs for now until they are implemented on another branch 2014-01-29 00:01:33 -05:00
Sahat Yalkabov cecba541a7 Add Forgot your password routes 2014-01-28 18:58:37 -05:00
Sahat Yalkabov 4e21e761ad Remove flash messages view helper 2014-01-28 17:50:23 -05:00
Ignazio Setti 28d3c14bca Make flash messages available to every view 2014-01-28 20:03:01 +01:00
Ignazio Setti be7f77dbb9 Replace connect-flash with express-flash 2014-01-28 20:02:45 +01:00
Sahat Yalkabov 96d9719daf Automatically try to re-connect to MongoDB every 5 seconds in case of connection.error 2014-01-28 12:48:29 -05:00
Sahat Yalkabov d7b1bfe032 Update mongodb connection error message 2014-01-28 12:43:17 -05:00
Sahat Yalkabov e9b2555e1b Refactor 404 middleware 2014-01-28 01:46:33 -05:00
Sahat Yalkabov 639db23067 Static content caching 2014-01-28 01:45:45 -05:00
Sahat Yalkabov 0a0cc7493b Enable express.compress() middleware for "gzipping" content 2014-01-28 00:24:55 -05:00
Sahat Yalkabov 6d54b34723 Remove unused 'fs' module 2014-01-28 00:02:16 -05:00
Tim Messerschmidt b023ea1c01 Adds PayPal routes for the SDK 2014-01-27 11:35:23 -08:00
Sahat Yalkabov 9a4c5450eb Added error validation express middleware 2014-01-23 22:18:35 -05:00
Sahat Yalkabov 41e85876e3 Remove MongoStore 2014-01-20 05:07:54 -05:00
Sahat Yalkabov 38245ccfb8 Code cleanup, updated jsdoc comments, added missing "next" error middleware to api.js controllers. 2014-01-13 04:24:31 -05:00
Sahat Yalkabov e8b1616e13 Replaced clusters in favor of mongoose connection error handler. Plus, Css updates. 2014-01-11 22:53:31 -05:00
Sahat Yalkabov b09c8f16ac Added clusters for zero-downtime.
mongoose auto-reconnect set to true.
2014-01-08 01:37:40 -05:00
Sahat Yalkabov 0e82538dd3 Updated 404 page.
Deleted 500 page.
Switched to default Connect's expressHandler() that show stack trace.
2014-01-08 00:41:56 -05:00
Sahat Yalkabov bd36575122 Refactoring 2014-01-07 18:15:14 -05:00
Sahat Yalkabov 5d5d546d25 Refactoring 2014-01-07 14:13:35 -05:00
Sahat Yalkabov c389525a8d Connect-mongo for mongodb sessions 2014-01-07 14:07:18 -05:00
Sahat Yalkabov 32577b78be Comments.
Updated readme.
2014-01-06 19:31:30 -05:00
Sahat Yalkabov 9598f3119c Using clusters instead of domains.
Appended all controller variables with Controller to make it more explicit.
2014-01-06 19:22:28 -05:00
Sahat Yalkabov f660cd5129 Declared Passport helper middleware so you don't have to explicitly pass user: req.user explicitly to templates 2014-01-03 18:19:11 -05:00
Sahat Yalkabov 30a610be2c Cleaned up code + simplified 2013-12-20 14:12:29 -05:00
Sahat Yalkabov 2f0fe0eb27 Add authentication middleware to github route.
Removed old ios7 signup login page for now.
2013-12-20 02:39:51 -05:00