This is the Volto project used to build Storybook for EEA Design System
If you need to bootstrap a new Volto Frontend project for a new EEA Website, see volto-frontend-template
If you need to bootstrap a new Volto Add-on for your EEA Website project, see volto-addon-template
A training on how to create your own website using Volto is available as part of the Plone training at https://training.plone.org/.
Volto documentation is available at 6.docs.plone.org
-
Install
nvm
touch ~/.bash_profile curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash source ~/.bash_profile nvm version
-
Install latest
NodeJS LTS 16.x
:nvm install 16 nvm use 16 node -v v16.13.1
-
Install
yarn
curl -o- -L https://yarnpkg.com/install.sh | bash yarn -v
-
Clone:
git clone https://github.com/eea/eea-storybook.git cd eea-storybook
-
Install the project packages
yarn
-
Build resources if you run frontend in production mode
yarn build
-
Start backend and check logs for application ready message
docker-compose up -d backend docker-compose logs -f backend
A new
data
folder will be created which will be mounted as a docker volume.Inside it, you will find the Plone database, the site changes are persisted inside it.
-
Start frontend in develop mode without the need to build the JS resources
yarn start
-
Or start frontend in production mode
yarn start:prod
-
See application at http://localhost:3000
-
Login with admin:admin
-
Install Docker
-
Install Docker Compose
-
Start the Plone backend and the Volto frontend:
git clone https://github.com/eea/eea-storybook.git cd eea-storybook docker-compose pull docker-compose up -d
optionally change
PORTS
via.env
:FRONTEND=9000 BACKEND=9100 docker-compose up -d
-
See application at http://localhost:4000
We use Docker, Rancher and Jenkins to deploy this application in production.
- Create a new release of this code via
git tag
command or Draft new release on Github.- A new Docker image is built and released automatically on DockerHub based on this tag.
-
Within your Rancher environment click on the
Upgrade available
yellow button next to your stack. -
Confirm the upgrade
-
Or roll-back if something went wrong and abort the upgrade procedure.