• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    JavaScript
  • License
    BSD Zero Clause L...
  • Created over 3 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Gatsby

Gatsby's hello-world starter

Kick off your project with this hello-world boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.

Have another more specific idea? You may want to check out our vibrant collection of official and community-created starters.

๐Ÿš€ Quick start

  1. Create a Gatsby site.

    Use the Gatsby CLI to create a new site, specifying the hello-world starter.

    # create a new Gatsby site using the hello-world starter
    gatsby new my-hello-world-starter https://github.com/gatsbyjs/gatsby-starter-hello-world
  2. Start developing.

    Navigate into your new siteโ€™s directory and start it up.

    cd my-hello-world-starter/
    gatsby develop
  3. Open the source code and start editing!

    Your site is now running at http://localhost:8000!

    Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

    Open the my-hello-world-starter directory in your code editor of choice and edit src/pages/index.js. Save your changes and the browser will update in real time!

๐Ÿง What's inside?

A quick look at the top-level files and directories you'll see in a Gatsby project.

.
โ”œโ”€โ”€ node_modules
โ”œโ”€โ”€ src
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .prettierrc
โ”œโ”€โ”€ gatsby-browser.js
โ”œโ”€โ”€ gatsby-config.js
โ”œโ”€โ”€ gatsby-node.js
โ”œโ”€โ”€ gatsby-ssr.js
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md
  1. /node_modules: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.

  2. /src: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. src is a convention for โ€œsource codeโ€.

  3. .gitignore: This file tells git which files it should not track / not maintain a version history for.

  4. .prettierrc: This is a configuration file for Prettier. Prettier is a tool to help keep the formatting of your code consistent.

  5. gatsby-browser.js: This file is where Gatsby expects to find any usage of the Gatsby browser APIs (if any). These allow customization/extension of default Gatsby settings affecting the browser.

  6. gatsby-config.js: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins youโ€™d like to include, etc. (Check out the config docs for more detail).

  7. gatsby-node.js: This file is where Gatsby expects to find any usage of the Gatsby Node APIs (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.

  8. gatsby-ssr.js: This file is where Gatsby expects to find any usage of the Gatsby server-side rendering APIs (if any). These allow customization of default Gatsby settings affecting server-side rendering.

  9. LICENSE: This Gatsby starter is licensed under the 0BSD license. This means that you can see this file as a placeholder and replace it with your own license.

  10. package-lock.json (See package.json below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You wonโ€™t change this file directly).

  11. package.json: A manifest file for Node.js projects, which includes things like metadata (the projectโ€™s name, author, etc). This manifest is how npm knows which packages to install for your project.

  12. README.md: A text file containing useful reference information about your project.

๐ŸŽ“ Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:

  • For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.

  • To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.

๐Ÿ’ซ Deploy

Build, Deploy, and Host On The Only Cloud Built For Gatsby

Gatsby Cloud is an end-to-end cloud platform specifically built for the Gatsby framework that combines a modern developer experience with an optimized, global edge network.

More Repositories

1

react-projects

CSS
4,790
star
2

node-express-course

JavaScript
3,513
star
3

javascript-basic-projects

CSS
3,263
star
4

react-course-v3

JavaScript
1,493
star
5

react-advanced-2020

JavaScript
893
star
6

VS-CODE-SETUP

564
star
7

redux-toolkit-tutorial

JavaScript
436
star
8

react-beach-resort-project

JavaScript
294
star
9

mern-course-jobify

JavaScript
272
star
10

react-basics-2020

JavaScript
242
star
11

react-router-6-tutorial

JavaScript
237
star
12

html-css-simply-recipes

HTML
206
star
13

typescript-course

TypeScript
187
star
14

default-starter

CSS
175
star
15

setup-files-js-comfy-house

CSS
173
star
16

javascript-nuggets

JavaScript
150
star
17

mern-jobify-v2

JavaScript
146
star
18

setup-filese-react-phone-e-commerce-project

JavaScript
143
star
19

react-phone-e-commerce-project

JavaScript
140
star
20

react-course-comfy-sloth-store

JavaScript
129
star
21

nextjs-course-openai

TypeScript
129
star
22

redux-toolkit-jobster

JavaScript
118
star
23

setup-files-react-beach-resort

JavaScript
106
star
24

react-search-github-users

JavaScript
104
star
25

js-cart-setup

CSS
102
star
26

react-advanced-v18

JavaScript
101
star
27

starter-project-gatsby-strapi-portfolio-2020

CSS
96
star
28

axios-tutorial-react

JavaScript
92
star
29

vs-code-setup-2022

90
star
30

starter-project-react-github-search-users

JavaScript
83
star
31

html-css-mini-projects

CSS
75
star
32

react-course-comfy-sloth-starter

JavaScript
73
star
33

html-css-grid-project-recording

SCSS
66
star
34

react-jobs-app

JavaScript
65
star
35

gatsby-strapi-portfolio-site-2020

JavaScript
65
star
36

react-hooks-budged-calculator-app

JavaScript
63
star
37

javascript-tutorial-source-code

52
star
38

react-course-comfy-store-project-recording

JavaScript
47
star
39

html-css-comfy-store-js-course

HTML
43
star
40

gatsby-tutorial-2020

JavaScript
38
star
41

starter-project-redux-tutorial-cart

CSS
38
star
42

nextjs-course-home-away

TypeScript
38
star
43

redux-tutorial-cart

JavaScript
37
star
44

vs-code-setup-javascript-course

37
star
45

styled-components-v5

JavaScript
36
star
46

react-vite-projects-19-comfy-store-v2

JavaScript
35
star
47

react-meals-application-freeCodeCamp

JavaScript
35
star
48

gatsby-coffee-project

JavaScript
34
star
49

serverless-functions-complete-project

JavaScript
33
star
50

gatsby-v3-portfolio-project

JavaScript
32
star
51

javascript-comfy-store-course-project

CSS
31
star
52

html-css-course-v2

SCSS
29
star
53

starter-project-gatsby-v3-strapi-portfolio

CSS
28
star
54

js-course-challanges

JavaScript
28
star
55

svelte-store-project

CSS
27
star
56

javascript-challanges-series

JavaScript
26
star
57

react-node-user-workflow-front-end

JavaScript
25
star
58

js-comfy-house-parcel-setup

JavaScript
23
star
59

typescript-react-essentials

TypeScript
23
star
60

starter-project-css-grid-udemy-portfolio-project

CSS
22
star
61

react-vite-projects-18-tailwind-portfolio

JavaScript
22
star
62

react-e-commerce-v2

JavaScript
21
star
63

svelte-budget-project-recording

CSS
21
star
64

starter-project-gatsby-mdx-blog-course-project

JavaScript
21
star
65

react-nuggets

CSS
20
star
66

youtube-react-debounce

CSS
19
star
67

default-starter-latest-version

CSS
19
star
68

serverless-functions-starter

CSS
19
star
69

youtube-react-formdata-api

CSS
19
star
70

typescript-tutorial

CSS
19
star
71

javascript-oop-course-projects

CSS
18
star
72

html-css-only-floats-tea-station-project

CSS
18
star
73

nextjs-starter-kit-v1

TypeScript
17
star
74

js-comfy-house-furniture-store

JavaScript
17
star
75

html-css-mini-projects-site

CSS
17
star
76

svelte-tutorial-budget-calculator-project

CSS
16
star
77

react-projects-2-tours

CSS
16
star
78

serverless-react-all-examples-complete

JavaScript
16
star
79

react-projects-21-movie-db

CSS
16
star
80

react-vite-projects-16-contentful

CSS
16
star
81

gatsby-v3-mdx-blog-complete

JavaScript
16
star
82

html-css-tutorial-source-code

15
star
83

js-course-extra-content

JavaScript
15
star
84

html-css-nuggets

CSS
15
star
85

setup-files-gatsby-coffee

15
star
86

react-projects-23-quiz

JavaScript
15
star
87

react-vite-projects-17-cocktails

JavaScript
15
star
88

react-udemy-vintage-tech-extra-fetures

JavaScript
15
star
89

react-projects-1-birthday-reminder

CSS
15
star
90

task-manager-app

TypeScript
15
star
91

react-todo-list

JavaScript
14
star
92

starter-project-gatsby-v3-mdx-blog

JavaScript
14
star
93

html-css-slider-project

CSS
14
star
94

boot-sweets-setup

CSS
13
star
95

react-vite-projects-14-cart

JavaScript
13
star
96

react-projects-15-cocktails

JavaScript
13
star
97

svelte-store-server

HTML
13
star
98

react-vite-projects-2-tours

CSS
13
star
99

setup-files-react-budget-calculator

CSS
13
star
100

react-person-list-project

JavaScript
13
star