common-gateway/huwelijksplanner-bundle
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.
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.
The HuwelijksplannerBundle currently utilizes the following bundles:
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.
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:
Open a terminal and run the following command to install the Huwelijksplanner bundle:
docker-compose exec php composer require common-gateway/huwelijksplanner-bundle
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!
These instructions will guide you through the setup process for the Huwelijksplanner project. Please follow the steps below to get started:
Before you begin, ensure you have the following software installed on your system:
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 the NEXT_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!
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.
Users
Settings in the Admin UI.Users tab.Sources
Actions
MessageBird action:
Actions in the Admin UI.MessageBird to view its detailsOriginator to the sender of the SMS.Mappings
Mappings in the Admin UI.EmailAndSmsDataPartner or EmailAndSmsDataWitness to view its detailsbody 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 marriageOnce you have completed these steps, the Huwelijksplanner Admin UI should be fully configured and is the Huwelijksplanner project ready to use.
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.
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.
The SDG products test data consists of the following objects:
Types of Marriages:
Marriage Officials:
Marriage Locations:
Extra Products:
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!
How can I help you explore Laravel packages today?