DEV Community

Antonio Radovcic
Antonio Radovcic

Posted on • Updated on

(Updated) Minimal Gatsby-Starter with REST-Api

UPDATED, here's the original post


Hi Dev.to peeps,

I'm looking for an article, example or tutorial to get a minimal Gatsby-Site started, with JSON-data from a public REST-Api (like a list of Marvel-Heroes from their Api, with a detail-page for each).

Thanks!


At first I thought it would be much more complicated to wire up a custom REST-API to Gatsby.

Turns out it's not that hard. I followed the steps on this Stack-Overflow-Post. Thanks to Arden de Raaij for posting this in the comments!

Shoutout to Danilo Miranda and Petro Liashchynskyi for their links to also very insightful getting-started-articles!

Oldest comments (6)

Collapse
 
liashchynskyi profile image
Petro Liashchynskyi

Yoo, wasssup 😁 Check out this tutorial from Traversy Media 😉

Collapse
 
niorad profile image
Antonio Radovcic

Thank you!
Does it include using a custom Rest-Api as data-source?

Collapse
 
ardennl profile image
Arden de Raaij

Hi Antonio! You might want to have a look at the creating a source plugin page on the Gatsby site. Also, this StackOverflow answer provides some excellent guidance on how to pull in data from a custom Rest API: stackoverflow.com/a/49317803

Collapse
 
niorad profile image
Antonio Radovcic

This is excellent, thanks!
If this were StackOverflow, you'd have a green checkmark now.

Collapse
 
nilomiranda profile image
Danilo Miranda

Hi Antonio!

I don't know if you still need it, but I wrote an article myself about how to get started with Gatsby
danmiranda.io/getting-started-with...

Hit me up if you need any help or other resources!

Collapse
 
vincenzomarcovecchio profile image
Vinny

But does anyone thinks is better for SEO? sorry I don't know much about it