A ready made setup to use as boilerplate for Symfony 2.8 with Admin LTE 2 admin template
The following things are provided pre-configured -
- Layout using beautiful, responsive Admin LTE 2 Template
- Sample working pages (Login, Dashboard and User CRUD) for using Admin LTE 2 design
- Working User Entity and Login, Logout, Password reset, Profile picture etc. using FOSUserBundle
- Configured SyliusResourceBundle
- Flexible, configurable menu using KNPMenuBundle
- Installation of assets with Bower
-
Clone the repository to your local
git clone git@github.com:ajaxray/sf28_lte2.git my-project
-
Create a VirtualHost:
<VirtualHost *:80> ServerName my-project.dev <Directory "/path/to/my-project/web"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> DocumentRoot "/path/to/my-project/web" </VirtualHost>
Don't forget to add domain in
hosts
file and reload apache. -
Create
.htaccess
file and modify to match your environment:cp web/.htaccess.dist web/.htaccess
-
Download the vendor libraries:
composer install --prefer-dist bower install
If you require any other common js tool (e,g,
moment.js
,bootstrap-datepicker
etc.) don't forget to checkweb/assets/AdminLTE/plugins/
directory first. Good number of common tools/plugins are already available there. -
Prepare the database:
php app/console doctrine:database:create php app/console doctrine:schema:create
-
Install and dump assets:
php app/console assets:install --symlink php app/console assetic:dump
-
Create a super admin to access dashboard:
php app/console fos:user:create admin --super-admin
-
Run the app by visiting: http://my-project.dev
Enjoy!