/avatar.png

格心

Gatsby基础知识(上)

这篇文章主要是翻译和记录了一些 Gateby 的基础知识,有助于开发者通过这些基础知识进行快速的开发
Refer to the Article: https://mpolinowski.github.io/gatsby-js-knowledgebase

00 准备操作

The default Gatsby starter

Github

有关项目结构的概述,请参阅Gatsby documentation - Building with Components

从您的 CLI 运行此安装程序(假设已安装 Gatsby):

    gatsby new gatsby-wiki

01 开始你的 Gatsby 开发环境(Start your Gatsby development environment)

现在请转到你的站点目录中,并使用 npm 运行你的 Gatsby 开发环境如下:

    cd gatsby-wiki
    npm run development

看,你可以访问你的网站了http://localhost:8000