Test Project 2:
The test project is aimed at testing knowledge of best practices, anti-patterns and basic understanding of symfony and the likes... It strongly embraces concepts such as modularity, service registration, abstraction, dependency injection and many other practices associated with OOP and other professional design practices. In-code documentation is provided with phpDocs. The project is a simple film inventory system.
Getting Started:
Prerequisites:
1. Php version >= 7.0.0
2. Composer
3. MySQL server or MariaDB
4. Attention
About:
The test project was setup using the latest symfony version 3.3.5 . The default ORM is doctrine(laravel's eloquent equivalent), and uses doctrine's migrations equivalent for migrations and doctrine's fixtures for fixtures('laravel seeder equivalent')
Installing:
1.Install composer globally, instructions can be found at getcomposer.org
2.Setup a MySQL database with parameters of your choice, an example template can be found @app/config/parameters.yml.dist
3.Update the parameters.yml file under @app/config/
4.Open a terminal in the project's home directory
5.Run commands
composer install
AND
./bin/console doctrine:migrations:generate
AND
./bin/console doctrine:migrations:migrate
AND
./bin/console doctrine:fixtures:load
to load the database fixtures(seeders)
6.Install the project assets with
./bin/console assets:install
6.Run the Symfony web server by command
./bin/console server:run
OR
./bin/console server:start
-interchangable on unix systems)
7.Browse the project @localhost:8000
Notes:
1.Symfony 3.3.5 is not yet stable, even though it's marked stable, I personally encountered issues when integrating
bundles not yet adapted for version 3.3.5.
2.Console command
./bin/console server:start
is non-blocking and doesn't work on Mac systems where such isn't supported, so use:
php bin/console server:run
3.Console commands as described above prefixed with:
./ as in ./bin/console ....
only works on linux, prefix with
php instead, as in php bin/console ....
on Mac and Windows Systems.
4.For more administrational activities, the admin panel is located @localhost:8000/admin.
Coding standard:
The project adheres to the following coding standards:
PSR-1
PSR-2
PSR-4
PSR-5
PSR-12.
Built With:
1.Php
2.Symfony
3.Composer
Authors:
-Odusanya Victor - Initial work
4ecfdb8abbba6eac6b8c9949a93f1d2c1a148535