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

https://github.com/tinalabs/tinacms-gatsby-experimental-example


https://github.com/tinalabs/tinacms-gatsby-experimental-example

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Gatsby + TinaCMS

> Warning: This is experimental. We are still working on finding the best way to integrate TinCMS with Gatsby. Any ideas or contributions are welcome on the [TinaCMS github repo](https://github.com/tinacms/tinacms).
>
> Check out at [this discussion](https://github.com/tinacms/tinacms/discussions/3503) for more info

## Setup

- Fork this repo
- Clone the fork your local machine.

## Local Development

Install the project's dependencies:

```
yarn install
```

Run the project locally:

```
yarn dev
```

Open [http://localhost:8000](http://localhost:8000) with your browser to see the result.

### Building the Starter Locally (Using the hosted content API)

Replace the `.env.example`, with `.env`

```
TINA_CLIENT_ID=
TINA_TOKEN=
TINA_BRANCH=
```

Build the project:

```bash
yarn build
```

## Deploying the Site

This project can easily be deployed using services like [Netlify](https://www.netlify.com/) or [Vercel](https://vercel.com/).

### Environment variables

When setting up the Netlify/Vercel project, apply the `TINA_CLIENT_ID` & `TINA_TOKEN` environment variables from your [app.tina.io](https://app.tina.io) project.

## Learn More

To learn more about Tina, take a look at the following resources:

- [Tina Docs](https://tina.io/docs)
- [Getting Started Guide](https://tina.io/guides/tinacms/non-react-based-ssg/guide/)

You can check out the [Tina GitHub repository](https://github.com/tinacms/tinacms) - your feedback and contributions are welcome!