-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Alin Voinea edited this page Nov 25, 2021
·
19 revisions
-
Install required tools:
npm install -g yo @plone/generator-volto ejs
-
Create a new repository from volto-frontend-template - make sure the new reposity name ends with
-frontend
, e.g.:custom-frontend
-
Clone your new repository on your local machine like:
git clone https://github.com/eea/custom-frontend cd custom-frontend
-
Bootstrap Volto project
yo @plone/volto --skip-install --addon @eeacms/volto-eea-kitkat --workspace src/addons/*
- You can also provide
--volto 14.0.0-alpha.35
if you want a specific Volto version
- You can also provide
-
Run bootstrap
node bootstrap
-
See changes and commit:
git diff git add . git commit -m "Initial commit" git push
-
Install:
yarn
-
Run:
-
Start backend:
docker pull eeacms/plone-backend docker run -it --rm -e SITE=Plone -e PROFILES=eea.kitkat:default -p 8080:8080 eeacms/plone-backend
-
Start frontend:
yarn start
-
Go to http://localhost:3000
-
-
Create branch develop from branch master and add branch protections ( Settings -> Brancher -> Branch protection rules -> Add rule ):
-
develop
- no check-boxes need to be checked, this is added to protect the branch from deletion. Optional - check "Allow force pushes" -
master
- mandatory to check this 5 boxes to setup the Automated Releases:Require a pull request before merging: Require approvals Dismiss stale pull request approvals when new commits are pushed Require status checks to pass before merging Require branches to be up to date before merging
-