Ability to utilize Connect middleware in GeddyJS?

18 views
Skip to first unread message

Jeff Lam

unread,
Aug 1, 2014, 11:00:23 AM8/1/14
to ged...@googlegroups.com
Hello all,

GeddyJS has been doing great so far as a backend MVC structure for my app's API. Thank you to the creators for that!

That being said, I'm trying to integrate Prerender.io into my app to allow for the front-end app (which is built on AngularJS) to be crawlable by both Google and Facebook's crawlers. 

The Prerender.io's installation requires a npm module install (done), but it also has steps to implement the middleware. However, I'm not sure if GeddyJS has any such concept of middleware?

Here is the step it asked me to take if I were using Express on node:

app.use(require('prerender-node').set('prerenderToken', <mytoken>)

Is there a way to do something similar to the above in Geddy?

Thank you!
Jeff

Matthew Eernisse

unread,
Aug 1, 2014, 6:22:50 PM8/1/14
to ged...@googlegroups.com
Geddy's before-filters are ostensibly compatible with Express middleware. In fact, Geddy's auth plugin integrates Passport, which is Express middleware. I don't think the Express compat-mode has been well tested, but it should be doable. You can always pop into IRC to get faster iteration on getting assistance. People kind of roll in and out, but it's usually a good source of help.


--
The official community discussion group.
website: geddyjs.org, source: https://github.com/mde/geddy, group: https://groups.google.com/d/forum/geddyjs?hl=en
---
You received this message because you are subscribed to the Google Groups "GeddyJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geddyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages