git clone [email protected]:sourcier/uk.sourcier.content.git
git clone [email protected]:sourcier/friendly-broccoli.git
cd friendly-broccoli
touch .env
Add:
TINACMS_CLIENT_ID
TINACMS_TOKEN
TINACMS_REMOTE_ROOT_PATH
- relative path (from packages/frontend) to the markdown content store on your machine
env variables, TINACMS_CLIENT_ID
and TINACMS_TOKEN
can be found in 1Password or the tinacms dashboard.
To get images to load correctly from the content repo you do the following:
cd friendly-broccoli/packages/frontend/public
ln -s $TINACMS_REMOTE_ROOT_PATH/public/media/ media
Run the development server:
npm run dev -w packages/frontend
Open http://localhost:3000 with your browser to see the result.
Staging: staging.sourcier.uk, d2aqywhkdsx1tj.cloudfront.net
This system is fully coded and built on top of Open Source, more details here:
- Next.js Documentation - learn about Next.js features and API.
- tailwindcss
- headless ui
- tinacms