• Stars
    star
    499
  • Rank 88,341 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 4 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 blog starter

Kick off your project with this blog 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 blog starter.

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

    Navigate into your new site’s directory and start it up.

    cd my-blog-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-blog-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: Gatsby is licensed under the MIT 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

Deploy to Netlify

More Repositories

1

cms

Club Management System of amFOSS, powered by CMS
Python
558
star
2

fosswebsite

A club management system that handles student details, progress, events, achievements, attendance, status updates, teams and workshop registrations. This is the official FOSS@Amrita website
HTML
544
star
3

GitLit

Platform to connect contributors and projects based on skill level and shared interests.
Python
539
star
4

vidyaratna

Curated resources for newbies to get started with programming, open source, cyber security and many more fields.
535
star
5

website_old

The official website repo of amfoss
Roff
513
star
6

master-syllabus

Master Syllabus for FOSS@Amrita
507
star
7

App

The android app for community network for amFOSS members
Java
505
star
8

Wikimedia_Hackathon_Amrita_University

Organization store
HTML
504
star
9

fosster

Offical website for the technical event organised by FOSS@Amrita
JavaScript
502
star
10

Workshops

Archive of Workshops conducted by FOSS@Amrita
502
star
11

temple-app

This project is no longer actively maintained and has been archived for historical reference. Android App which handles the information about temple. People can register and keep a track of all poojas, donations made to the temple.
Java
501
star
12

automated-scripts

This project has been is obsolete and archived, and replaced by the amFOSS CMS
Python
500
star
13

bot

Telegram Chatbot Assistant for Managing Club Activities
Python
496
star
14

android-workshop-summer-2018

Repository of all the Java files and apps that will be taken in the RTE Workshop on Android in the Summer of 2018
Java
496
star
15

foss-meetups

JavaScript
496
star
16

WebApp

The react-based community network for amFOSS members
JavaScript
495
star
17

website

Website of FOSS@Amrita, Powered by JAMStack
JavaScript
490
star
18

cybergurukulam

Archive for the source of a website for "CyberGurukulam" program. This project (and corresponding website) is no longer actively maintained.
CSS
489
star
19

Qujini

Open Source Question Paper Generator
Python
489
star
20

kde-conf-2018

Source for a webpage for KDE conf 2018. This is archived for historical reference and is no longer actively maintained.
CSS
489
star
21

test-repo

This is a test repo, please fork me !!! \(^_^)/
488
star
22

praveshan

For Joining FOSS@Amrita
485
star
23

Hack4Amrita

Solving Problems of Amritians
481
star
24

cms-mobile

A flutter project for amfoss cms
Dart
448
star
25

attendance-tracker

Advanced Attendance Recording System for the members of FOSS@Amrita.
Python
436
star
26

events

Portal to host landing pages of amFOSS Events
JavaScript
425
star
27

internal-hackathon

423
star
28

webspace

This is the repo which hosts the front end for people.amfoss.in
JavaScript
276
star
29

Wiki

amFOSS Wiki
Python
272
star
30

tasks

Makefile
7
star