Assumptions:
- Composer
- PHP
- Node
- Yarn
To create a new project:
- Run
npx sgtpenguin/create-craft-react-app your-app-nameto 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.jsonupdate theproxyparameter 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
pageBuilderwith a block type heading that uses the heading field. - Create a Structure Section called
Pageswith an entry typePage. Set entry uri format to {slug}. Add thepageBuilderfield to thepageentry type. - Go to the graphql schema tab and enable the
Pagessection andpageentry type for querying.