https://github.com/tinalabs/tinacms-gatsby-experimental-example
https://github.com/tinalabs/tinacms-gatsby-experimental-example
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tinalabs/tinacms-gatsby-experimental-example
- Owner: tinalabs
- Created: 2023-01-06T18:38:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T15:53:12.000Z (over 3 years ago)
- Last Synced: 2025-03-01T04:44:40.321Z (over 1 year ago)
- Language: TypeScript
- Size: 588 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!