Boilerplate examples for frontend frameworks

Is there somewhere one could download actual working boilerpalte examples of next.js and/or the other frontend frameworks working with the Ghost API?

In the case of Gatsby, the fastest way to get started is with the official Gatsby Starter Ghost repository, which contains a light scaffolding of queries and templates to get a brand new site up and running.

Here’s the repo: https://github.com/TryGhost/gatsby-starter-ghost
And the demo site: https://gatsby.ghost.org

Gatsby also has a complete tutorial on how to source from Ghost. Check it out. https://www.gatsbyjs.org/docs/sourcing-from-ghost/

Also checkout the Eleventy starter template - https://github.com/TryGhost/eleventy-starter-ghost

For more detailed listing of all frameworks, checkout the documentation: https://ghost.org/docs/api/v3/#frontend-sdk

Let me know if that helps. :slight_smile:

2 Likes

Kinda like this, but these are the static generators, I’m specifically looking for something working for the dynamic frontends - next.js/nuxt.js.

A quick GitHub research and I found this:

Hope it helps. Good luck!

There’s also quite a few docs on how to work with Ghost on different frontends: https://ghost.org/docs/api/v3/#frontend-sdk

Next.js/Nuxt.js are also amongst them

1 Like