Skip to content

Latest commit

ย 

History

History
119 lines (74 loc) ยท 3.17 KB

File metadata and controls

119 lines (74 loc) ยท 3.17 KB

Brazilian Fields and Widgets for Plone ๐Ÿš€

Built with Cookieplone Tests

A monorepo containing Python and Node packages that implement Plone Dexterity fields and Volto widgets used in Brazilian projects.

Quick Start ๐Ÿ

Prerequisites โœ…

Ensure you have the following installed:

  • UV ๐Ÿ (Python dependency manager)
  • Node.js 22 ๐ŸŸฉ
  • pnpm ๐Ÿงถ (JavaScript package manager)
  • Docker ๐Ÿณ (Containerized environment)

Installation ๐Ÿ”ง

  1. Clone the repository:
git clone git@github.com:plonegovbr/brfieldsandwidgets.git
cd brfieldsandwidgets
  1. Install dependencies for both Backend and Frontend:
make install

Fire Up the Servers ๐Ÿ”ฅ

  1. Start the Backend (Plone) at http://localhost:8080/:
make backend-start
  1. In a new terminal, start the Frontend (Volto) at http://localhost:3000/:
make frontend-start

๐ŸŽ‰ Your Plone development environment is now live!

Running with Docker ๐Ÿ“ฆ

This setup includes:

  • Prebuilt Docker images for Backend and Frontend ๐Ÿ–ผ๏ธ
  • A complete stack with a Traefik router and a Postgres database ๐Ÿ—ƒ๏ธ
  • Accessible at http://brfieldsandwidgets.localhost ๐ŸŒ

To start the Docker-based environment, simply run:

docker compose up -d

Once the backend image is running, create a Plone site with:

docker compose exec backend './docker-entrypoint.sh create-site'

๐Ÿš€ Your Plone site is now up and running locally!

Project Structure ๐Ÿ—๏ธ

This monorepo hosts two packages:

  • backend/: Python package plonegovbr.brfields for Plone Dexterity fields.
  • frontend/: React package @plonegovbr/volto-brwidgets for Volto widgets.

Contributing ๐Ÿค

Contributions are welcome! If you find any issues or want to suggest improvements, please check out:

Every pull request requires a Change log entruy. The location of the news folder is the following:

  • backend: backend/news
  • frontend: frontend/packages/volto-brwidgets/news

Code Quality Assurance ๐Ÿง

Ensure your code follows best practices by running the following commands:

  • Format the codebase:
make format
  • Lint the code for errors and adherence to Plone standards:
make lint

You can also run these commands separately in the backend or frontend folders.

Internationalization ๐ŸŒ

Easily generate translation files for both Plone and Volto:

make i18n

Credits & Acknowledgements ๐Ÿ™

This package is developed and maintained by the PloneGov-BR community โค๏ธ.

โšก