DEV Community

Cover image for Getting started with gatsby
sakethk
sakethk

Posted on • Edited on

1 1

Getting started with gatsby

Requirements

Installing gatsby cli

npm i -g gatsby-cli
Enter fullscreen mode Exit fullscreen mode

Before creating a site you should know about gatsby starters. Starters are nothing but boilerplates there are hundred's of boilerplates (starters) available from gatsby official site.

Here you can choose Gatsby starter

Creating new gatsby site from starter

gatsby new {name_of_your_site} {starter-repo-link}
Enter fullscreen mode Exit fullscreen mode

Once gatsby new is successful then run the following commands

cd {name_of_your_site}
gatsby develop
Enter fullscreen mode Exit fullscreen mode

Project structure will be like this

/
|-- /.cache
|-- /plugins
|-- /public
|-- /src
    |-- /pages
|-- /static
|-- gatsby-config.js
|-- gatsby-node.js
|-- gatsby-browser.js
Enter fullscreen mode Exit fullscreen mode

Now you can check your site at localhost:8000

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more