You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Next.js starter is powered by [TinaCMS](https://app.tina.io) for you and your team to visually live edit the structured content of your website. ✨
6
+
7
+
The content is managed through Markdown and JSON files stored in your GitHub repository, and queried through Tina GraphQL API.
8
+
9
+
### Features
10
+
11
+
-[Tina Headless CMS](https://app.tina.io) for authentication, content modeling, visual editing and team management.
12
+
-[Vercel](https://vercel.com) deployment to visually edit your site from the `/admin` route.
13
+
- Local development workflow from the filesystem with a local GraqhQL server.
14
+
15
+
## Requirements
16
+
17
+
- Git, [Node.js Active LTS](https://nodejs.org/en/about/releases/), pnpm installed for local development.
18
+
- A [TinaCMS](https://app.tina.io) account for live editing.
2
19
3
20
## Local Development
4
21
@@ -7,6 +24,7 @@ Install the project's dependencies:
7
24
> [!NOTE]
8
25
> [Do you know the best package manager for Node.js?](https://www.ssw.com.au/rules/best-package-manager-for-node/) Using the right package manager can greatly enhance your development workflow. We recommend using pnpm for its speed and efficient handling of dependencies. Learn more about why pnpm might be the best choice for your projects by checking out this rule from SSW.
9
26
27
+
10
28
```
11
29
pnpm install
12
30
```
@@ -17,7 +35,33 @@ Run the project locally:
17
35
pnpm dev
18
36
```
19
37
20
-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
38
+
### Local URLs
39
+
40
+
-http://localhost:3000 : browse the website
41
+
-http://localhost:3000/admin : connect to Tina Cloud and go in edit mode
42
+
-http://localhost:3000/exit-admin : log out of Tina Cloud
43
+
-http://localhost:4001/altair/ : GraphQL playground to test queries and browse the API documentation
44
+
45
+
## Deployment
46
+
47
+
### GitHub Pages
48
+
49
+
This starter can be deployed to GitHub Pages. A GitHub Actions workflow is included that handles the build and deployment process.
50
+
51
+
To deploy to GitHub Pages:
52
+
53
+
1. In your repository settings, ensure GitHub Pages is enabled and set to deploy from the `gh-pages` branch
54
+
2. Push changes to your main branch - the workflow will automatically build and deploy the site
55
+
56
+
> [!NOTE]
57
+
> When deploying to GitHub Pages, you'll need to update your secrets in Settings | Secrets and variables | Actions to include:
58
+
> -`NEXT_PUBLIC_TINA_CLIENT_ID`
59
+
> -`TINA_TOKEN`
60
+
>
61
+
> You get these from your TinaCloud project - [read the docs](https://tina.io/docs/tina-cloud/deployment-options/github-pages)
62
+
63
+
> [!IMPORTANT]
64
+
> GitHub Pages does not support server side code, so this will run as a static site. If you don't want to deploy to GitHub pages, just delete `.github/workflows/build-and-deploy.yml`
21
65
22
66
### Building the Starter Locally (Using the hosted content API)
23
67
@@ -35,13 +79,29 @@ Build the project:
35
79
pnpm build
36
80
```
37
81
38
-
## Learn More
82
+
## Getting Help
83
+
84
+
To get help with any TinaCMS challenges you may have:
85
+
86
+
- Visit the [documentation](https://tina.io/docs/) to learn about Tina.
87
+
-[Join our Discord](https://discord.gg/zumN63Ybpf) to share feedback.
88
+
- Visit the [community forum](https://community.tinacms.org/) to ask questions.
89
+
- Get support through the chat widget on the TinaCMS Dashboard
90
+
-[Email us](mailto:[email protected]) to schedule a call with our team and share more about your context and what you're trying to achieve.
91
+
-[Search or open an issue](https://github.com/tinacms/tinacms/issues) if something is not working.
92
+
- Reach out on Twitter at [@tina_cms](https://twitter.com/tina_cms).
93
+
94
+
## Development tips
95
+
96
+
### Visual Studio Code GraphQL extension
97
+
98
+
[Install the GraphQL extension](https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql) to benefit from type auto-completion.
39
99
40
-
To learn more about Tina, take a look at the following resources:
0 commit comments