DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,547 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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!

Top comments (6)

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 Author

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
 
liashchynskyi profile image
Petro Liashchynskyi

Yoo, wasssup 😁 Check out this tutorial from Traversy Media πŸ˜‰

Collapse
 
niorad profile image
Antonio Radovcic Author

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

Collapse
 
vincenzomarcovecchio profile image
Vinny

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

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›