Download the PHP package fabiomattei/ud-demo without Composer
On this page you can find all versions of the php package fabiomattei/ud-demo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fabiomattei/ud-demo
More information about fabiomattei/ud-demo
Files in fabiomattei/ud-demo
Package ud-demo
Short Description Demo app for uglyduckling framework
License GPL-3.0-or-later
Informations about the package ud-demo
Demo app for Ugly Duckling
Download and startup
Before we start you need to be sure you have composer and docker properly installed on your system. Ulgy Duckling requires PHP 7.3 or newer installed on your system but if that is not the case we can take advantage of docker in order to solve the issue.
Clone the demo project from this repository
git clone https://github.com/fabiomattei/ud-demo
Now you can type:
cd ud-demo
composer update
docker-compose build
docker-compose up -d
You will have a working installation of UD.
Using Docker in order to update the composer dependencies
If you do not have PHP 7.3 or 7.4 installed on your system you can just use docker to run composer. Instead of writing composer update you are going to type:
sudo docker run --rm --interactive --tty --volume $PWD:/app composer update
This command is going to run composer using a docker container.
Setting up the database
The demo app uses PHPMyAdmin to work with the database.
If you point your browser to http://localhost:8183, you are going to find an instance of phpMyAdmin already pointing to your database.
Now is time di import the data schema located in ud-demo/docker/apache/datamodel.sql
First access to the system
Point your browser to: http://localhost:18080
You will find a log-in page.
On your first install the system defines two users (already part of datamodel.sql):
- user: admin password: admin this is the user that can create new users and activate or deactivare modules of the system
- user: author password: author this is just a user created in order to have some kind of access to the system
We recommend you to change usernames and password at your first login.
Now you are ready to go.