Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wonism/gatsby-starter-notion

Gatsby starter for notion
https://github.com/wonism/gatsby-starter-notion

gatsby gatsby-notion gatsby-starter gatsby-starter-notion gatsbyjs notion

Last synced: 3 months ago
JSON representation

Gatsby starter for notion

Awesome Lists containing this project

README

        

# Gatsby Starter Notion

## Features
- Disqus (Blog comment hosting service)
- Google Analytics
- Sitemap
- RSS Feeds

## ⚠️ Prerequisite
You need a token to use this package.
You can get it from [Notion.so](https://www.notion.so/) cookie. the key of it is `token_v2`.

Then set `NOTION_TOKEN` with your token.

```
$ export NOTION_TOKEN="<>"
```

## βš™οΈ Options
You can check build options on [this](https://github.com/wonism/gatsby-source-notion-contents#options).

## πŸš€ Quick start

1. **Create a Gatsby site.**

Use the Gatsby CLI to create a new site with gatsby-starter-notion

```sh
gatsby new my-blog https://github.com/wonism/gatsby-starter-notion
```

1. **Start developing.**

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

```shell
cd my-blog
npm start
```

1. **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.org/tutorial/part-five/#introducing-graphiql)._

## πŸ— Build

```sh
$ npm run build
```