Note this repo assumes basic knowledge of using the MongoDB adapter and ClerkJS for auth with Tina.
cp .env.sample .env
For the GITHUB_PERSONAL_ACCESS_TOKEN
, ensure you have access to write content to the repo.
npm run dev
This will start both the TinaCMS and Netlify dev servers on your machine. By default, Netlify will serve the app on port 8888.
Visit the admin at http://localhost:8888/admin/index.html
and login to Clerk, be sure to use the same email address that you supplied
as TINA_PUBLIC_PERMITTED_EMAIL
in the .env file.
Set TINA_PUBLIC_IS_LOCAL
to "false" to test your Clerk auth integration locally
The only difference between local dev with Netlify and running on a Netlify host is that you'll want to be sure the Netlify deployment
has access to the appropriate environment variables. Be sure not to copy TINA_PUBLIC_IS_LOCAL
, or set it to "false"
.