This example showcases a Remix Blog using DatoCMS as the data source.
The purpose of this repo is to have a quick start reference that can be set up with the "one-click" button below.
Have a look at the end result live:
-
Let DatoCMS set everything up for you clicking this button:
In your DatoCMS' project, go to the Settings menu at the top and click API tokens.
Then click Read-only API token and copy the token.
Next, copy the .env.example
file in this directory to .env
(which will be ignored by Git):
cp .env.example .env
Then set each variable on .env
:
DATOCMS_READONLY_TOKEN
should be the API token you just copied.
Your .env
file should look like this:
DATOCMS_READONLY_TOKEN=
From your terminal:
npm run dev
This starts your app in development mode, rebuilding assets on file changes.