User Tools

Site Tools


network:webdev:gatsby

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
network:webdev:gatsby [2021/07/18 21:10]
zhwiki
network:webdev:gatsby [2021/07/18 22:38]
zhwiki [创建网站]
Line 28: Line 28:
 ===== 创建网站 ===== ===== 创建网站 =====
  
 +1. 创建网站,运行gatsby命令行工具:
 +
 +  gatsby new
 +  ​
 +进入交互模式,创建网站。
 +  ​
 +2. 编译网站,进入网站目录,运行编译工具,在本地编译网站:
 +
 +  npm run develop
 +  ​
 +3. 编译完成后,运行本地服务器:
 +
 +  gatsby develop
 +
 +此时,就可以在浏览器查看网站:
 +
 +  http://​localhost:​8000/​
 +
 +查看GraphiQL:
 +
 +  http://​localhost:​8000/​___graphql
  
  
network/webdev/gatsby.txt · Last modified: 2021/07/18 22:38 by zhwiki