common-gateway / huwelijksplanner-bundle
A symfony package for dutch municipality marriage functionality
Installs: 311
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 4
Type:symfony-bundle
Requires
- php: >=7.4
- common-gateway/brp-bundle: ^0.1.4 | <1.0
- common-gateway/klanten-bundle: ^0.1.3 | <1.0
- common-gateway/zgw-bundle: ^0.1.34 | <2.0
- commongateway/corebundle: ^1.1.30 | <2.0
- moneyphp/money: 3.3.3
- symfony/sendinblue-mailer: >=5.3.14
Requires (Dev)
- symfony/dependency-injection: ~3.4|~4.1|~5.0
- dev-main
- 0.0.111
- 0.0.110
- 0.0.109
- 0.0.108
- 0.0.107
- 0.0.106
- 0.0.105
- 0.0.104
- 0.0.103
- 0.0.102
- 0.0.101
- 0.0.100
- 0.0.99
- 0.0.98
- 0.0.97
- 0.0.96
- 0.0.95
- 0.0.94
- 0.0.93
- 0.0.92
- 0.0.91
- 0.0.90
- 0.0.89
- 0.0.88
- 0.0.87
- 0.0.86
- 0.0.85
- 0.0.84
- 0.0.83
- 0.0.82
- 0.0.81
- 0.0.80
- 0.0.79
- 0.0.78
- 0.0.77
- 0.0.76
- 0.0.75
- 0.0.74
- 0.0.73
- 0.0.72
- 0.0.71
- 0.0.70
- 0.0.69
- 0.0.68
- 0.0.67
- 0.0.66
- 0.0.65
- 0.0.64
- 0.0.63
- 0.0.62
- 0.0.61
- 0.0.60
- 0.0.59
- 0.0.58
- 0.0.57
- 0.0.56
- 0.0.55
- 0.0.54
- 0.0.53
- 0.0.52
- 0.0.51
- 0.0.50
- 0.0.49
- 0.0.48
- 0.0.47
- 0.0.46
- 0.0.45
- 0.0.43
- 0.0.42
- 0.0.41
- 0.0.40
- 0.0.39
- 0.0.38
- 0.0.37
- 0.0.36
- 0.0.35
- 0.0.34
- 0.0.33
- 0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-feature/WOO-188/core-change
- dev-feature/HP/product-page
- dev-feature/HP-174/huwelijk-getuigen
- dev-fix/multipleActions
- dev-fix/assentPatch
- dev-feature/small-product-fix
- dev-fix/2nd-partner-invite-and-witness-array
- dev-fix/testdata-kosten
- dev-feature/do-application-correctly
- dev-feature/HP-47/validate-huwelijk-moment
- dev-feature/redirect-after-payment
- dev-feature/HP-48/cost-calculating
- dev-feature/2nd-partner-flow
- dev-feature/HP-83/test-users
- dev-feature/HP-112/marrying-people-testdata
- dev-analysis-6V02en
- dev-feature/HP-70/availability-endpoint
- dev-feature/pr-comments
- dev-feature/xz-45/code-sniffer
- dev-ruben/sec-clean
- dev-analysis-wOM7ye
- dev-feature/payment
- dev-feature/fix-schemas
- dev-analysis-APYmDy
- dev-feature/installation-cleanup
- dev-analysis-4waEve
- dev-feature/HP/update-bundle
This package is auto-updated.
Last update: 2024-11-02 11:26:28 UTC
README
The HuwelijksplannerBundle is a powerful Symfony bundle that provides essential functionality for handling Dutch marriage requests within municipalities. This bundle is specifically designed to streamline and simplify the process of managing marriage-related operations, making it an indispensable tool for municipal authorities.
Changes from Huwelijksplanner 2020
In the previous iteration of the Huwelijksplanner project, the decision was made to fully separate the Huwelijksplanner into individual registers, each developed as a separate Common Ground component. These components were then required to be installed independently.
However, this approach led to several issues. Numerous installations were necessary to get the Huwelijksplanner up and running, and the large number of codebases posed maintenance challenges.
In the current iteration of the Huwelijksplanner, we have addressed these concerns by reorganizing the individual components as plugins. This change offers two primary advantages:
-
Smaller Codebases: By restructuring the components into plugins, the underlying codebases are now more manageable and easier to maintain.
-
Unified Gateway Installation: These different plugins can now be run on a single installation of the Common Gateway. This streamlines the deployment process and simplifies the setup for developers.
Optionally, municipalities still have the flexibility to choose between running the components in separate installations or combining them in a unified setup.
Bundles Used in the HuwelijksplannerBundle
The HuwelijksplannerBundle currently utilizes the following bundles:
- CoreBundle: GitHub Repository
- BRPBundle: GitHub Repository
- KlantenBundle: GitHub Repository
- ZGWBundle: GitHub Repository
While all these bundles can still be installed as standalone components (please refer to their respective installation guides), the HuwelijksplannerBundle now defaults to installing these bundles as additional plugins on the same gateway.
This new approach offers greater modularity, making it easier for developers to work with the HuwelijksplannerBundle and allowing for more flexible configurations based on the needs of individual municipalities.
If you have any questions, suggestions, or new ideas, please don't hesitate to share them in the project repository. Let's work together to create an exceptional wedding planning experience that brings joy and happiness to couples preparing for their special day.
Backend Installation Instructions
The Huwelijksplanner backend codebase utilizes the Common Gateway as an open-source installation framework. This means that the Huwelijksplanner library, in its core form, functions as a plugin on this Framework. To learn more about the Common Gateway, you can refer to the documentation here.
Please note that the Huwelijksplanner frontend codebase is a separate docker container.
To install the backend, follow the steps below:
Gateway Installation
- If you do not have the Common Gateway installed, you can follow the installation guide provided here. The Common Gateway installation is required for the backend setup. You can choose any installation method for the gateway, such as Haven, Kubernetes, Linux, or Azure, and any database option like MySQL, PostgreSQL, Oracle, or MsSQL. The gateway framework handles this abstraction.
HuwelijksplannerBundle Installation - Admin-UI
- After successfully installing the Gateway, access the admin-ui and log in.
- In the left menu, navigate to "Plugins" to view a list of installed plugins. If you don't find the "Huwelijksplanner" plugin listed here, you can search for it by clicking on "Search" in the upper-right corner and typing "Huwelijksplanner" in the search bar.
- Click on the "Huwelijksplanner" card and then click on the "Install" button to install the plugin.
- The admin-ui allows you to install, upgrade, or remove bundles. However, to load all the required data (schemas, endpoints, sources), you need to execute the initialization command in a terminal.
HuwelijksplannerBundle Installation - Terminal
-
Open a terminal and run the following command to install the Huwelijksplanner bundle:
docker-compose exec php composer require common-gateway/huwelijksplanner-bundle
Initialization Command (Terminal)
-
To load all the data without any specific content, execute the following command:
docker-compose exec php bin/console commongateway:initialize
OR
To load all the data along with specific content, run:
docker-compose exec php bin/console commongateway:initialize -data
With these steps completed, the backend setup for the Huwelijksplanner project should be ready to use. If you encounter any issues during the installation process, seek assistance from the development team. Happy coding!
Frontend Installation Instructions
These instructions will guide you through the setup process for the Huwelijksplanner project. Please follow the steps below to get started:
Prerequisites
Before you begin, ensure you have the following software installed on your system:
- Git
- Node.js (npm)
- Docker
- Docker Compose
Installation
-
Clone the Utrecht Huwelijksplanner repository by running the following command in your terminal:
git clone https://github.com/frameless/utrecht-huwelijksplanner.git
-
In the project directory, find the
.env
file and modify theNEXT_PUBLIC_API_URL
to use the local API. Change it to:NEXT_PUBLIC_API_URL=http://localhost/api
-
Run the following command in the terminal to install the project dependencies and generate necessary code:
npm install && npm run codegen
-
Build and start the development environment using Docker Compose:
docker-compose -f docker-compose.dev.yml build docker-compose -f docker-compose.dev.yml up --remove-orphans
If you encounter an error during this step, try running the production Docker Compose file located in the repository under
Docker-compose.yml
. After a successful build, you can retry step 4.
With these steps completed, the frontend setup for the Huwelijksplanner project should be ready to use. If you encounter any issues during the installation process, seek assistance from the development team. Happy coding!
Admin UI - Setup Instructions
Once the backend (and frontend) is up and running, the HuwelijksplannerBundle can be configured. To ensure proper functionality, the sources and Security Group (Default Anonymous user) need to be modified. Other adjustments are optional.
Configuration Steps:
-
Users
- Change the passwords of the users if necessary. It is recommended that you change the email of the admin user.
- Go to
Settings
in the Admin UI. - Navigate to the
Users
tab. - Select the user and edit the password.
- Go to
- Change the passwords of the users if necessary. It is recommended that you change the email of the admin user.
-
Sources
- Provide the required API keys for the following sources:
- SendInBlue API
- Mollie API
- MessageBird API
- Provide the required API keys for the following sources:
-
Actions
- Change the sender of the SMS in the
MessageBird
action:- Go to
Actions
in the Admin UI. - Locate and select
MessageBird
to view its details - Set the
Originator
to the sender of the SMS.
- Go to
- Change the sender of the SMS in the
-
Mappings
- Configure SMS and Email data for the partner and/or the witnesses:
- Go to
Mappings
in the Admin UI. - Locate and select
EmailAndSmsDataPartner
orEmailAndSmsDataWitness
to view its details - Change the values of body, assentName, assentDescription and url.
body
is the body of the smsassentName
is the name of the assent that is made for this partnerassentDescription
is the description of the assent that is made for this partnerurl
is the url that the partner is directed to, to confirm the marriage
- Go to
- Configure SMS and Email data for the partner and/or the witnesses:
Once you have completed these steps, the Huwelijksplanner Admin UI should be fully configured and is the Huwelijksplanner project ready to use.
Huwelijksplanner Test Data - Developer Guide
Here is information on the test data used in the Huwelijksplanner. We load two files containing test data: BRP (Basisregistratie Personen) BRPTestData.json
and SDG products HuwelijksPlannerTestData,json
.
Test Data Details:
BRP Test Data:
The BRP test data includes entries for registered persons in the BRP system, linked to the users being loaded. Each user has a person
property that contains a BSN (Burger Service Nummer) corresponding to the BSN in the BRP registered persons object.
SDG Products Test Data:
The SDG products test data consists of the following objects:
-
Types of Marriages:
- Omzetting (Conversion)
- Partnerschap (Partnership)
- Huwelijk (Marriage)
- Eenvoudig Huwelijk (Simple Marriage)
- Flits/Baliehuwelijk (Express/Counter Marriage)
- Gratis Trouwen (Free Marriage)
-
Marriage Officials:
- Toegewezen (Assigned)
- Eigen Trouwambtenaar (Own Marriage Official)
- Keuze Trouwambtenaar (Choice of Marriage Official)
-
Marriage Locations:
- Eigen Locatie (Own Location)
- Loge (Lodge)
- Trouwzaal (Wedding Hall)
- Balie (Counter)
-
Extra Products:
- Trouwboekje (Marriage Booklet)
All SDG products have translations with additional information about the product.
These test data files are used to populate the Huwelijksplanner with sample information for testing and development purposes.
Feel free to explore and utilize this test data as needed during your development workflow.
To gain a deeper understanding of the services and commands offered by the HuwelijksplannerBundle, we encourage you to explore the detailed documentation available at https://commongateway.github.io/HuwelijksplannerBundle/. This documentation provides comprehensive insights into the bundle's capabilities, service usage, and available commands.
Whether you are a developer working on a municipal wedding planning project or an enthusiast seeking to learn more about the HuwelijksplannerBundle, this documentation is an invaluable resource to help you navigate and utilize the bundle effectively.
Join us in harnessing the power of the HuwelijksplannerBundle to create seamless and efficient marriage request handling solutions for Dutch municipalities. Happy coding!