Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kgajera/gatsby-contentful-md-starter

A Gatsby starter using Contentful (CMS) and Tailwind (CSS framework). In particular, this starter renders markdown content from Contentful and uses Tailwind Typography for styling.
https://github.com/kgajera/gatsby-contentful-md-starter

contentful gatsby-starter gatsbyjs tailwindcss tailwindtypography

Last synced: 2 days ago
JSON representation

A Gatsby starter using Contentful (CMS) and Tailwind (CSS framework). In particular, this starter renders markdown content from Contentful and uses Tailwind Typography for styling.

Awesome Lists containing this project

README

        


Gatsby



Gatsby Contentful Starter

A Gatsby starter using [Contentful](https://www.contentful.com) (CMS) and [Tailwind](https://tailwindcss.com/) (CSS framework). In particular, this starter renders markdown content from Contentful and uses [Tailwind Typography](https://github.com/tailwindlabs/tailwindcss-typography) for styling.

## Getting Started

1. Use the Gatsby CLI ([install instructions](https://www.gatsbyjs.com/docs/tutorial/part-0/#gatsby-cli)) to create a new site, specifying the gatsby-contentful-md-starter.

```shell
# create a new Gatsby site using the gatsby-contentful-md-starter
gatsby new my-contentful-starter https://github.com/kgajera/gatsby-contentful-md-starter
```

1. Navigate into your new site’s directory:

```shell
cd my-contentful-starter/
```

1. Create a new [environment file](https://www.gatsbyjs.com/docs/how-to/local-development/environment-variables/), `.env.development`, with the following contents:

```
CONTENTFUL_SPACE_ID=
CONTENTFUL_ACCESS_TOKEN=
CONTENTFUL_MANAGEMENT_TOKEN=
```

1. Run `npm run contentful-import` to import content types

1. Run `npm run develop` to start the development server. Your site is now running at `http://localhost:8000`!

## Deploy

Deploy this starter with one click on [Gatsby Cloud](https://www.gatsbyjs.com/cloud/):

[Deploy to Gatsby Cloud](https://www.gatsbyjs.com/dashboard/deploynow?url=https://github.com/kgajera/gatsby-contentful-md-starter)