Sahat Yalkabov
4c7b0d275b
Reverted back to express 3 style routes
2014-06-06 15:23:28 -04:00
Sahat Yalkabov
1807e9edc7
Updated comments, added missing semicolons, moved compress() middleware up one level above connect-assets
2014-06-06 14:58:30 -04:00
Sahat Yalkabov
bdc495782a
Use new Express 4 routes notation
2014-06-05 20:21:03 -04:00
Sahat Yalkabov
f5e41d53d2
Fixed a returnTo bug
...
Bumped version to 2.1.4
2014-06-05 11:08:30 -04:00
Sahat Yalkabov
0049a879cd
Minor updates, added comments for custom express middleware
2014-06-01 11:52:28 -04:00
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
Sahat Yalkabov
fa6cfa7ccd
Some more code cleanup
2013-12-20 01:47:52 -05:00
Sahat Yalkabov
a9ac61e063
Renamed config.js to secrets.js to better match the intents of the file
2013-12-20 01:31:16 -05:00
Sahat Yalkabov
a6d762b071
Code refactoring
2013-12-20 00:50:44 -05:00
Sahat Yalkabov
4cea56881a
Removed express error handler (development only)
2013-12-19 20:27:51 -05:00
Sahat Yalkabov
010fc0c9fb
Error handling via middleware in routes
2013-12-19 20:17:15 -05:00
Sahat Yalkabov
901aeb08d2
Use node.js domains to catch errors when mongodb crashes
2013-12-19 14:30:11 -05:00
Sahat Yalkabov
b4f1df3d18
Added error handling middleware that catches all errors. Also added 500.jade template for a user-friendly error template.
2013-12-19 13:53:00 -05:00
Sahat Yalkabov
47e06d5a18
404 page and middleware
2013-12-18 02:07:01 -05:00
Sahat Yalkabov
f2048f3fda
Refactoring, removed forgot password placeholder
2013-12-17 21:24:08 -05:00
Sahat Yalkabov
273bd0afcc
Refactoring and code cleanup
2013-12-15 14:02:41 -05:00
Sahat Yalkabov
7175005e2c
Google linking and unlinking works successfully now
2013-12-13 01:12:59 -05:00
Sahat Yalkabov
9de1748bc2
Updated URLs
2013-12-13 00:50:37 -05:00
Sahat Yalkabov
e0bdccbd2c
Oauth linking and unlinking controller and route placeholders
2013-12-12 14:05:35 -05:00
Sahat Yalkabov
be1eb09af8
account page small ui changes
2013-12-12 13:55:12 -05:00
Sahat Yalkabov
6870bcc098
Implemented Delete account feature
2013-12-12 12:41:29 -05:00
Sahat Yalkabov
75ef770e49
Github page Ui modifications
2013-12-12 01:54:48 -05:00
Sahat Yalkabov
d148004d56
Removed partials route (old)
2013-12-11 22:27:07 -05:00
Sahat Yalkabov
f8b64f985d
Removed etsy links, won't be doing that API yet
2013-12-10 03:13:48 -05:00
Sahat Yalkabov
3bd21d9244
New york times bestsellers api implementation
2013-12-10 01:16:03 -05:00
Sahat Yalkabov
c5d2513e43
Added artist information on last.fm example with bio, tags, cover image, and stats
2013-12-09 23:11:41 -05:00
Sahat Yalkabov
32ef20a04d
created New york times api template
2013-12-09 21:04:40 -05:00
Sahat Yalkabov
67da9d7f01
Last.fm auth callbacks
2013-12-09 17:14:20 -05:00
Sahat Yalkabov
76b8db7087
added authorized middleware to github route
2013-12-08 16:17:05 -05:00
Sahat Yalkabov
37392d1fae
passport isAuthorized middleware. Fixed headers already sent errors.
2013-12-08 04:30:43 -05:00
Sahat Yalkabov
7b4549b368
Refactoring
2013-12-08 03:58:56 -05:00
Sahat Yalkabov
195f916f56
Added isAuthorized middleware to tumblr and foursquare routes
2013-12-08 02:23:59 -05:00
Sahat Yalkabov
51001a0497
Created isAuthorized middleware
2013-12-08 02:10:49 -05:00
Sahat Yalkabov
06db58c554
Added aviary api example
2013-12-08 01:49:18 -05:00
Sahat Yalkabov
58805c678d
Code cleanup
2013-12-08 01:17:12 -05:00
Sahat Yalkabov
d7f19c483f
New github api page with a repo information example
...
Bootstrap-Well ios7 style
2013-12-07 21:44:26 -05:00
Sahat Yalkabov
717628834e
Routes for the rest of APIs
2013-12-07 19:47:00 -05:00
Sahat Yalkabov
44c90b7156
Finished web scraping example with a hacker news top 30 links
2013-12-07 18:53:00 -05:00
Sahat Yalkabov
5b99baa007
Web scraping page
2013-12-07 17:45:20 -05:00
Sahat Yalkabov
8a84fef5a2
Added cheerio lib and new api links
2013-12-07 17:27:27 -05:00
Sahat Yalkabov
dd81615dbc
Updated routes to use custom foursquare strategy instead of node-foursquare
2013-12-07 12:32:34 -05:00
Sahat Yalkabov
3871e7c0ec
Inline tumblr callback instead of placing it in passportConfig
2013-12-07 01:05:19 -05:00
Sahat Yalkabov
435b006967
Refactoring tumblr authorization
2013-12-07 00:50:37 -05:00
Sahat Yalkabov
2a35732fe8
Changed tumblr route middleware to passport.authorize
2013-12-07 00:30:28 -05:00
Sahat Yalkabov
f332cf8500
Updated some controller names
...
Added tumblr oauth routes
Tumblr Get token button
2013-12-06 22:23:05 -05:00
Sahat Yalkabov
a0a0c0e4ae
Minor corrections
2013-12-06 21:41:59 -05:00
Sahat Yalkabov
e5b0e27c38
Added Express error-handler plus other changes borrowed from the express 3.4.6 skeleton
2013-12-06 20:34:45 -05:00
Sahat Yalkabov
4887ec5dd8
Nonexisting routes will simply return an error page instead of redirecting to home page
2013-12-06 03:07:45 -05:00
Sahat Yalkabov
4d92ad9d16
User profile information is now successfully saved and retrieved back on account profile page
2013-12-05 23:53:14 -05:00
Sahat Yalkabov
6794f64a03
Minor style change on foursquare venue detail, and removed old images
2013-12-04 22:11:09 -05:00
Sahat Yalkabov
5779d54d0c
LESS middleware
2013-12-03 22:53:01 -05:00