Skip to content

Commit

Permalink
made changes to README, package.json and gatsby-config.
Browse files Browse the repository at this point in the history
  • Loading branch information
SceptreData committed Dec 6, 2019
1 parent f0d43d4 commit 7a53e1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 96 deletions.
100 changes: 7 additions & 93 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,97 +1,11 @@
<p align="center">
<a href="https://www.gatsbyjs.org">
<img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />
</a>
</p>
<h1 align="center">
Starter for the official Gatsby blog theme
</h1>
# DD-React

Quickly get started using the Gatsby blog theme! This starter creates a new Gatsby site that is preconfigured to work with the [official Gatsby blog theme](https://www.npmjs.com/package/gatsby-theme-blog).
_By Danine Noble and David Bergeron_

## 🚀 Quick start
## Thinking in React: Stateful Components

1. **Create a Gatsby site.**
A short article where we build a UI Color Picker using React Hooks.
We explain where state should exist inside of your components,
and how that relates to hooks.

Use the Gatsby CLI to create a new site, specifying the blog theme starter.

```shell
# create a new Gatsby site using the blog theme starter
gatsby new my-themed-blog https://github.com/gatsbyjs/gatsby-starter-blog-theme
```

2. **Start developing.**

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

```shell
cd my-themed-blog/
gatsby develop
```

3. **Open the code and start customizing!**

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

To get started, check out the guide to [using the Gatsby blog theme starter](http://gatsbyjs.org/docs/themes/using-a-gatsby-theme), or the longer, [more detailed tutorial](http://gatsbyjs.org/tutorial/using-a-theme).

## 🧐 What's inside?

Here are the top-level files and directories you'll see in a site created using the blog theme starter:
```
gatsby-starter-blog-theme
├── content
│ ├── assets
│ │ └── avatar.png
│ └── posts
│ ├── hello-world.mdx
│ └── my-second-post.mdx
├── src
│ └── gatsby-theme-blog
│ ├── components
│ │ └── bio-content.js
│ └── gatsby-theme-ui
│ └── colors.js
├── .gitignore
├── .prettierrc
├── gatsby-config.js
├── LICENSE
├── package-lock.json
├── package.json
└── README.md
```
1. **`/content`**: A content folder holding assets that the theme expects to exist. This will vary from theme to theme -- this starter is set up to get you started with the blog theme, which expects an image asset for your avatar, and blog post content. Replace the avatar image file, delete the demo posts, and add your own!
2. **`/src`**: You will probably want to customize your site to personalize it. The files under `/src/gatsby-theme-blog` _shadow_, or override, the files of the same name in the `gatsby-theme-blog` package. To learn more about this, check out the [guide to getting started with using the blog theme starter](http://gatsbyjs.org/docs/themes/using-a-gatsby-theme).
3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
4. **`.prettierrc`**: This file tells [Prettier](https://prettier.io/) which configuration it should use to lint files.
5. **`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. When using themes, it's where you'll include the theme plugin, and any customization options the theme provides.
6. **`LICENSE`**: Gatsby is licensed under the MIT license.
7. **`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).**
8. **`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.
9. **`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](https://www.gatsbyjs.org/).
Here are some places to start:
### Themes
- To learn more about Gatsby themes specifically, we recommend checking out the [theme docs](https://www.gatsbyjs.org/docs/themes/).
### General
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** 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](https://www.gatsbyjs.org/docs/).** In particular, check out the _Reference Guides_ and _Gatsby API_ sections in the sidebar.
_This project has been built with [Gatsby JS](https://www.gatsbyjs.org/). We used the theme [Gatsby Waves](https://www.gatsbyjs.org/packages/gatsby-theme-waves/) for the presentational effects._
4 changes: 2 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module.exports = {
plugins: [`gatsby-theme-blog`, `gatsby-theme-waves`],
// Customize your site metadata:
siteMetadata: {
title: `Double D React`,
title: `DD-React: Stateful Components`,
author: `David Bergeron + Danine Noble`,
description: `One day we will know what this project is about.`,
description: `A short article breaking down state and components, using React Hooks.`,
social: [
{
name: `twitter`,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "gatsby-starter-blog-theme",
"name": "dd-react",
"private": true,
"version": "0.0.1",
"scripts": {
Expand Down

0 comments on commit 7a53e1b

Please sign in to comment.