Be sure you have NodeJS 18 installed. You can install it from here.
Clone the repository. Then, run npm i
(or use pnpm
to save disk space) to install the dependencies.
Make a copy of env.txt
and rename it to .env
.
To start the website in local development mode so that it will auto-refresh. It will give you an IP address where you can access the website.
npm run dev
Also, in a new terminal window, run this script to activate the CMS backend. This allows you to change page content without editing the code.
npm run cms-proxy-server
Once both of these are running, you can access the CMS at http://<IP-ADDRESS-GIVEN>/admin
.
In order to make changes to blocks so editors can access them in the CMS, make sure to follow these instructions.
-
In the
cms/
folder, modify the features in presumablycommon.js
. You can copy an existing feature within the block. -
Modify the Zod schema in config.ts to include the new property.
-
Edit the code of the block in
components/Block