Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Rohit Thorat
Rohit Thorat
12,191 Points

How to build website using Gatsby.js

i want to clone a popular website using gatsby js . Can anyone tell me how should i start the project . i did go through the docs for gatsby js but i am very confused how to start

1 Answer

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

Hi Rohit,

Start by installing the Gatsby program:

npm install --global gatsby-cli

Then to initiate your new project, cd into the directory where you want to create your project folder, then run:

gatsby new NameOfYourApp UrlToStarter

You then want to cd into your new project and run this:

cd NameOfYourApp
gatsby develop

This will start your dev server, and you can now start changing your files :)

Hope that helps,

Jonas