.. include:: /Includes.rst.txt .. _installation-demo: ==== Demo ==== Try adsum locally with ddev and a demo company. Quick start =========== 1. Start ddev. This installs the Composer packages and runs the migrations: .. code-block:: bash ddev start 2. Build the frontend: .. code-block:: bash ddev vite 3. Load the demo company. This erases the database: .. code-block:: bash ddev demo 4. Open https://adsum.ddev.site and log in with one of the demo accounts. ddev also runs the Messenger worker and a Mercure hub. Demo accounts ============= Every account has the password ``correct horse battery staple``. .. list-table:: :header-rows: 1 :widths: 30 70 * - Account - Role * - ``ben@example.de`` - Employee, with one forgotten clock-out on the most recent day * - ``anna@example.de`` - Manager of Ben; leads the planning team "Web team" of Ben and Fiona * - ``gustav@example.de`` - Manager of Fiona; plans for everybody in resource planning * - ``carla@example.de`` - HR; second factor required * - ``erik@example.de`` - Administrator; second factor required Second factor ============= Carla and Erik need a one-time code. Add this secret to an authenticator app: .. code-block:: text JBSWY3DPEHPK3PXP Or create one on the command line: .. code-block:: bash oathtool --totp -b JBSWY3DPEHPK3PXP Sent e-mails ============ The demo delivers all e-mails to Mailpit: .. code-block:: bash ddev mailpit Working with the demo ===================== Rebuild the demo (erases all changes): .. code-block:: bash ddev demo Update after pulling changes (``composer install``, migrations, frontend build): .. code-block:: bash ddev update Rebuild the frontend on every change: .. code-block:: bash ddev vite --watch Run a console command: .. code-block:: bash ddev exec bin/console Open a PostgreSQL shell: .. code-block:: bash ddev psql Follow the application log: .. code-block:: bash ddev exec tail -f var/log/dev.log Demo data ========= ``ddev demo`` loads: - The company "Muster GmbH" - The five people with a login above, and further colleagues without a login, with departments, positions, employments and reporting lines - Two locations, Munich and Hamburg, with their public holidays - The working-time models "Full time" and "Part time 30 hours", assigned to everyone - Time tracking switched on, with the punches of the last ten working days, already calculated Screenshots =========== The screenshots of this manual show the demo company. To take fresh ones: .. code-block:: bash Build/Scripts/runTests.sh -s screenshots They are written to ``Documentation/Images/Handbook/``.