Загрузка...

Gatsby Admin and Contentful, with Kyle Mathews

Kyle Mathews is the CEO and Co-founder of Gatsby.

In this video, Kyle gave us a look at the new Admin version of Recipes and how we can create a brand new blog from scratch in less than two minutes with no coding required. Here, he uses the Contentful Blog Recipe for - you guessed it - setting up our new blog on Contentful.

Step 1: The Recipe informs you of the changes it will make to your site on your behalf, installing the necessary NPM packages and plugins, like `gatsby-source-contentful`, to pull data from your new Contentful space, which it also nicely and automatically creates for you. The first (and really only) thing you need to do is enter some information. This might be something like what you want to name your blog plus the title and some content for your first post. (It’s ok for these to be placeholders for now, you can edit them easily once the blog is set up on Contentful). You enter these into text boxes, which behind the scenes is setting up the new Contentful space and specifying the `BlogPost`content type. Gatsby uses source plugins to automatically and very efficiently power your site with data from different sources, and using Admin means zero configuration work from the user is required.

Step 2: Hit the “install Recipe” button. A few seconds to install the plugins and create the spaces, and there you go! Head over to Contentful and you will find the blog space that we just created. Click on the “Content model” tab and there’s your brand new blog and your first example blog post. Click on that to start writing/editing (Hello, World!) and view your brand new site.

Yes, this took less than two minutes. Yes, it’s that easy.

Stay tuned for more updates on Twitter from Kyle (@kylemathews) and Gatsby (@gatsbyjs).

Видео Gatsby Admin and Contentful, with Kyle Mathews канала Gatsby
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять