A simple app which allows a visitor to add their name, DOB and email to a list, and an administrator to view and sort the list.
The easiest way the run the app is by using the included Vagrantfile. This requires that Vagrant and VirtualBox are
installed on your system. To do this, simply run vagrant up
, and the app will be served at 192.168.33.10
.
Alternatively, you can serve the app with Apache. The docroot should be public/
. Apache should have access to all the
outer directories app/
,db/
and vendor/
.
On the first run, you'll need to run composer install
, followed by
vendor/bin/doctrine orm:schema-tool:update --force --dump-sql
to install the dependencies and initialise the database.
If using the included Vagrant file, first run vagrant ssh
and run the commands on the VM.
The app directory should be writable by the Apache user.
Add your details to the list by visiting /
, or view a list of submitted details by visiting /list
.
Testing uses PHPUnit, which should be installed & on your path. To test, run phpunit
.
- PHP
- Apache
- Composer
- PHPUnit
Remove front-end dependencies (Bulma, Vue) from repo and use NPM to manage them.