Gatsby: is there a blog starter for this lib, similar to Ghost js that works with firebase? (question)

Created on 20 Feb 2017  路  8Comments  路  Source: gatsbyjs/gatsby

stale?

Most helpful comment

@emilyaviva well Gatsby is React :D

You could have a React.js Gatsby page that doesn't render anything on the server but in the client loads data from firebase and renders it. That'd be totally reasonable. Gatsby is just React after all. Also there's many scenarios where you want to build something that has both static elements and dynamic elements and Gatsby helps you easily blend the two.

All 8 comments

Do you mean, can you load content dynamically from a Firebase database, like a WordPress blog loads its data from a MySQL database? Or do you mean, is there a way to hook up Firebase so that the Gatsby build process reads JSON (or whatever) from Firebase and compiles those into static pages, rather than locally hosted files, as part of its build process?

@emilyaviva Now I wish you'd answered your own questions ^^

Can you load content dynamically with Firebase and use Gatsby to render it on-the-fly? No, but you can use React鈥攖hat's not what Gatsby is for.

Could you write an extension for Gatsby that would grab JSON objects from Firebase and run them through a wrapper to generate static HTML, instead of/in addition to generating static HTML from local Markdown files? Absolutely! (In principle, anyway!)

@emilyaviva well Gatsby is React :D

You could have a React.js Gatsby page that doesn't render anything on the server but in the client loads data from firebase and renders it. That'd be totally reasonable. Gatsby is just React after all. Also there's many scenarios where you want to build something that has both static elements and dynamic elements and Gatsby helps you easily blend the two.

@KyleAMathews Well, yes, I suppose so, you could do it that way!

Wow, you're here too. lol. Better start developing it then.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed due to inactivity.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theduke picture theduke  路  3Comments

andykais picture andykais  路  3Comments

ghost picture ghost  路  3Comments

timbrandin picture timbrandin  路  3Comments

dustinhorton picture dustinhorton  路  3Comments