Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nvnx7/cato-blog

Blog for cato.tv
https://github.com/nvnx7/cato-blog

chakra-ui gatsby react typescript

Last synced: 11 days ago
JSON representation

Blog for cato.tv

Awesome Lists containing this project

README

        



Gatsby



Cato Blog

Blog site for [Cato.tv](https://cato.tv), built with Gatsby from [this](https://github.com/gatsbyjs/gatsby-starter-blog) starter template.

## πŸš€ Quick start

1. **Clone the repo.**

Use git cli to clone this repo.

```shell
git clone https://github.com/theNvN/cato-blog.git
```

2. **Install dependencies.**

Navigate into site’s directory and install all required packages listed in `package.json`.

```shell
cd cato-blog/
npm install
```

3. **Start developing.**

Start it up using gatsby cli.

```shell
gatsby develop
```

4. **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](https://www.gatsbyjs.com/tutorial/part-five/#introducing-graphiql)._

## 🧐 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
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ LICENSE
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
└── README.md

## 🟠 NOTE

There isn't any `index.tsx` page in `./src/pages/` directory. Almost always this page is intended to be displayed at root path (`/`), as home page. Instead page at root path is generated using the template - `./src/templates/blog-list-page.tsx`. This was done to display paginated list of blogs, so page at root will display first page (first paginated list of blogs) and subsequent pages will be displayed at paths `/2`, `/3`, `/4` and so on.