Code Monkey home page Code Monkey logo

gatsby-tut-1's Introduction

Gatsby Tutorial Part 1

This repo follows the steps in Introduction to Gatsby basics, part one of the seven part tutorial in the Gatsby v1 documentation.

In this tutorial, I

  • add inline styles via a JavaScript style prop,
  • create links,
  • create React page components,
  • and add an interactive counter.

Demo

The website created by this repo is built from the gatsby-hello-world starter, which has the bare essentials needed for a Gatsby site.

The website is deployed on fuzzy-month.surge.sh.

Installation

Prerequisites

You need to have Node.js and npm installed. You can install both npm and Node by installing Node since npm is distributed with Node. You can use a Node.js version manager like NVM to switch Node versions between projects.

If you want to use Gatsby's command line tool, you need to install it.

npm install --global gatsby-cli

Install project

In the terminal, move to the directory you want this repo to be in.

cd parentDirectoryPath

If you have git installed, clone this repo. You can also download this repo by clicking on the green "Clone or download" button.

git clone https://github.com/eunicode/gatsby-tut-1.git

Install dependencies

npm install

Running in development

If you have Gatsby's command line tool installed, you can run the command gatsby develop, and Gatsby will start a hot-reloading development environment accessible at localhost:8000.

You can see more CLI commands in the docs.

Attribution

gatsby-tut-1's People

Contributors

eunicode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.