- clone this repository
- build containers with
docker-compose
. If you are not yet using docker, download Docker Desktop via https://www.docker.com/products/docker-desktop/ and check documentation on https://docs.docker.com/compose/install/. On Linux please also read this article https://docs.docker.com/engine/install/linux-postinstall/ - go to shell with
docker-compose exec php sh
- install composer dependencies
- project should be ready on URL http://localhost/
- create sub dirs
napojse_test/log
andnapojse_test/temp
- create Doctrine entity
User
into folderapp\Entity
with attributes$id
(auto increment),$email
(required unique string),$password
(required string),$fullName
(optional nullable string). The repository should be a descendant ofAbstractEntity
- create Doctrine repository for entity
User
into folderapp\Service
. The repository should be a descendant ofAbstractRepository
- create Doctrine entity
LoginAttempt
into folderapp\Entity
with attributes$id
(auto increment),$user
(many-to-one relation to entityUser
),$createdAt
(required immutable date time). The repository should be a descendant ofAbstractEntity
- create Doctrine repository for entity
LoginAttempt
into folderapp\Service
. The repository should be a descendant ofAbstractRepository
- run Doctrine command to create database tables:
php bin/console orm:schema-tool:create
- create a table list of all
User
entities inHomePresenter:default
. Table should have columns Full name, Email and Attempts count (assumed all attempt counts to be zero) - create a Nette form for creating a new
User
record inHomePresenter:create
. Form should have fieldsfullName
,email
,password
. All fields should be required. - create a database record after form submit and redirect to default view
If you are finished, please commit your work into public a Github repository. If you don't have a Github account please send us the zipped source code to our email. Thank you :)