DatingLibreDemo
The code used to power DatingLibre.com.
This repository is used as a demonstration on how to customize the reference implementation using categories based on sex.
Open pull requests against the reference implementation and the datinglibre-app-bundle.
Customization
This demo can be used as a template, create a local copy with:
git clone https://github.com/datinglibre/DatingLibreDemo.git MySite
cd MySite && git remote rename origin upstream
After installation, the datinglibre-app-bundle
should be changed to use a specific version to avoid breaking updates, e.g. ^1.0
or ^2.0
(check tagged version of the bundle for most recent) as it is currently set to track dev-master
.
See the DatingLibre Wiki on how to setup the project on your local machine and deploy the website.
You can either override the datinglibre-app-bundle (see how to override a Symfony bundle and customization on the wiki) or you can open a PR on the reference implementation and/or the datinglibre-app-bundle if you think a change should be part of the project.
Upgrading
To upgrade the datinglibre-app-bundle
see UPGRADING.md.
The following files were changed/created in order to create the demo site:
Configuration
config/packages/dating_libre.yaml
Controllers
src/Controller/UserProfileEditController.php
src/Controller/UserSearchIndexController.php
src/Controller/UserProfileIndexController.php
Forms
src/Form/ProfileForm.php
src/Form/ProfileFormType.php
src/Form/FilterForm.php
src/Form/FilterFormType
Twig templates
templates/bundles/DatingLibreAppBundle/user/profile/index.html.twig
templates/bundles/DatingLibreAppBundle/user/profile/edit.html.twig
templates/bundles/DatingLibreAppBundle/user/profile/view.html.twig
templates/bundles/DatingLibreAppBundle/user/search/index.html.twig
templates/bundles/DatingLbreAppBundle/macros/profile.header.html.twig
Routes
The routes were imported from the datinglibre-app-bundle, and, where necessary, overridden with routes to our own controllers above.
config/routes/datinglibre_demo.yaml
Tests
The Behat features in features/
were updated using find+replace.
Credits
The countries.sql
regions.sql
and cities.sql
files were created by processing geographical data from GeoNames
and are licensed under Attribution 4.0 International (CC BY 4.0).
The src/Security/LoginFormAuthenticator.php
is based on Symfony documentation How to build a login form
and is licensed under Creative Commons BY-SA 3.0.
Licence
Copyright 2020-2022 DatingLibre.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.