Extranet da Câmara Municipal de Curitiba Baseado em Plone 6 - Volto.
- Python 3.9, 3.10, 3.11
- Node 16
- yarn
- Docker
git clone git@github.com:CMCuritiba/extranet.cmcuritiba.pr.leg.br.git
cd extranet.cmcuritiba.pr.leg.br
make install
Start the Backend (http://localhost:8080/)
make start-backend
Start the Frontend (http://localhost:3000/)
make start-frontend
This monorepo is composed by two distinct codebases: api and frontend.
- backend: API (Backend) Plone installation using pip (not buildout). Includes a policy package named extranetcmcuritibaprlegbr
- frontend: React (Volto) package named frontend
- Repo contains all codebase needed to run the site (excluding existing addons for Plone and React).
- Github Workflows are triggered based on changes on each codebase (see .github/workflows)
- Easier to create Docker images for each codebase
- Showcase Plone installation/setup without buildout
There are some hooks to run lint checks on the code. If you want to automatically format them, you can run
make format
in the root folder or especifically in each backend or frontend folders.
Linters commands are available in each backend and frontend folder.
There are Makefile
commands in place:
build-test-acceptance-server
: Build Acceptance Backend Server Docker image that it's being used afterwards. Must be run before running the tests, if the backend code has changed.
start-test-acceptance-server
: Start server fixture in docker (previous build required)
start-test-acceptance-frontend
: Start the Core Acceptance Frontend Fixture in dev mode
test-acceptance
: Start Core Cypress Acceptance Tests in dev mode
In the setup.py file, located in the "backend/src/site_name/" folder, in the install_requires item, insert the term, with double quotes and a comma: "pas.plugins.oidc",
It is suggested to fill in the first position.
In a terminal, shut down the backend and frontend and run the following scripts, in this order:
make clean
make-backend
make-frontend
After finishing, and a terminal instantiate the backend with:
make start-backend
In another terminal:
make start-frontend
Access the link (http://localhost:8080/Plone/prefs_install_products_form), log in with an administrator login and install pas.plugins.oidc.
After the installation above, in the link (http://localhost:8080/Plone/acl_users/plugins/manage_interfaces) the term pas.plugins.oidc.plugins.IOIDCPlugin will appear. Mark and click on ADD, at the bottom of the page.
After confirmation, the link (http://localhost:8080/Plone/acl_users/oidc/login?came_from=http%3A//localhost%3A8080/Plone/acl_users/oidc/manage_propertiesForm) will be available. This is the SSO configuration registration screen.
Create the images:
make build-images
Run the images with docker compose:
cd devops
docker compose up
This was generated by cookiecutter-plone-starter on 2023-05-05 12:54:55