This is the codebase for FizzBuzz, a small php application with some issues that need resolving. This app is built for the purpose of screening PHP developer candidates.
- PHP 5.4+
- Composer
- MySQL
- Apache
After running composer install you just need to follow these steps:
- set up vhost
- add entry to hosts file
- set up datatabse
- build database
<VirtualHost *:80>
ServerName fizzbuzz.local
DocumentRoot "<PATH_TO_PROJECT>/public"
RewriteEngine on
SetEnv APP_ENV "development"
<Directory "<PATH_TO_PROJECT>/public">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Satisfy Any
Allow from all
Require all granted
</Directory>
</VirtualHost>
Where <PATH_TO_PROJECT>
is the actual path to the project.
Restart apache.
In /etc/hosts
(Linux/Mac) or C:\Windows\System32\drivers\etc\hosts
(Windows):
127.0.0.1 fizzbuzz.local
Set up a MySQL database called fizzbuzz
on localhost under user fizz
with
password buzz
.
mysql> create database fizzbuzz;
mysql> grant all privileges on fizzbuzz.* to fizz@localhost identified by 'buzz';
From the project root:
vendor/bin/up development
If mysql
is not in your $PATH
then try:
vendor/bin/up development /path/to/mysql/bin/mysql
Open http://fizzbuzz.local
in your browser.