Assumptions:
- Composer
- PHP
- Node
- Yarn
To create a new project:
- Run
npx sgtpenguin/create-craft-react-app your-app-name
to install the project template - Create an empty database for you project
- Put database details into .env
- Point a hostname to the /web folder
- In
package.json
update theproxy
parameter to your hostname - Navigate to http://your-hostname.test/admin and install craft
- At the bottom of the admin panel, click upgrade to craft pro and install as a trial.
- Go to settings/plugins and install all the plugins
- Create a Redactor field called RichText
richText
- Create a neo field called Page Builder
pageBuilder
with a block type heading that uses the heading field. - Create a Structure Section called
Pages
with an entry typePage
. Set entry uri format to {slug}. Add thepageBuilder
field to thepage
entry type. - Go to the graphql schema tab and enable the
Pages
section andpage
entry type for querying.