취업

[Gatsby 블로그] 템플릿 사용해서 localhost 블로그 띄워보기

셩리둥절 2024. 11. 21. 03:50
반응형

https://www.gatsbyjs.com/starters/LekoArts/gatsby-starter-minimal-blog/

 

gatsby-starter-minimal-blog | Gatsby

This starter is part of a german tutorial series on Gatsby. The starter will change over time to use more advanced stuff (feel free to express your ideas in the repository). Its first priority is a minimalistic style coupled with a lot of features for the

www.gatsbyjs.com

minimal-blog를 사용해서 localhost에 블로그를 띄워봅니다.

npx gatsby new gatsby-starter-minimal-blog https://github.com/LekoArts/gatsby-starter-minimal-blog

Quick Start에서 알려준대로 실행해봅니다.

npm run develop

 

에러가 나서 package를 약간 수정해줬습니다.

 Error: Cannot find module 'ajv/dist/compile/codegen'
seoyeome@gimseoyeong-ui-MacBookPro gatsby-starter-minimal-blog % npm install ajv@^8.0.0 ajv-keywords@^5.0.0

 

다시 실행해봅니다.

npm run develop

아래와 같은 로그가 남아있다면 실행 성공!

You can now view minimal-blog in the browser.
⠀
  http://localhost:8000/
⠀
View GraphiQL, an in-browser IDE, to explore your site's data and schema
⠀
  http://localhost:8000/___graphql

 

http://localhost:8000으로 접속해서 확인할 수 있습니다.

반응형