- Running app can be found by checking http://testapp-env.eba-jx2k3eg9.eu-central-1.elasticbeanstalk.com/products link to view it in the browser.
- For templating I'm using a third party library called Twig.
- Didn't had time to add full Test coverage.
Since usage of any known framework was not allowed I've taken the chance to build a minimalistic one my self.
- run
composer install
- point server to
Public
folder - if
NGINX
server used:
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
- if
APACHE
server used create a.htaccess
file inside Public with the following content:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php [QSA,L]