- In this tutorial app I am going to takes a hands-on approach to building a Wallpaper / Desktop Background sharing website:
- To begin with in this app I'm going to make use of the following skills and technologies:
- Controllers, Routing, Twig
- Login Form
- Register Form
- Contact Form
- Pagination on gallery page
- Doctrine queries (DQL), results, entity repositories
- Doctrine data load fixtures
- Creating console commands as alternative to load image data in our DB from
public/image
- Form Type, file uploads, and form theming
- EasyAdminBundle
- Event Listeners, Doctrine lifecycle hooks
- Symfony Services
- Test Driven Development techniques (PhpSpec)
- Bootstrap 3
Run composer install
in your root directory.
- Rename
.env.dist
to.env
:- Set your
DATABASE_URL
and dbSERVER_VERSION
to config doctrine/doctrine-bundle, MAILER_URL
to config symfony/swiftmailer-bundle for contact form,ADMIN_EMAIL
email to which you will receive messages from the contact form on site;
- Set your
- Run
php bin/console doctrine:database:create
to create new database by credentials from .env file. - Run
php bin/console doctrine:migrations:migrate
to run migration process and build database schema according to our doctrine entities. - Run
php bin/console doctrine:fixtures:load
to load demo data fixtures (category, wallpapers images), insert rows in your DB, etc. - Admin User is login
admin
, password1111
Run composer start
or php bin/console server:start
for start a dev server. Navigate to http://localhost:8000/
.
Run composer stop
or php bin/console server:stop
for stop a dev server.
Run composer test
or php vendor/bin/phpspec run
to execute the phpspec tests via "phpspec/phpspec": "^4.3".
Phpspec test are located in ./spec
folder.
To get more help use my email [email protected]
or my skype maksgru
or got to my website www.m-dev.net