Groceries List Manager
A simple Bundle for Symfony helping managing groceries lists : Whether you're in front of the fridge or at work, you can browse and add groceries to your lists., (*1)
When it's time to go shopping, just check the condensed list and save time !, (*2)
Requires Symfony 2.6+ with the bootstrap form template activated, (*3)
Setup
Symfony setup
Install symfony 2.6 (or later) and set it up with a database. If you're not familiar with Symfony, please check Composer and Symfony documentation. Basically, you have to run, (*4)
php composer.phar create-project symfony/framework-standard-edition GroceriesManager/, (*5)
on your webserver. Follow the steps for installing your Symfony instance and then go to the newly created folder using, (*6)
cd GroceriesManager, (*7)
Install VirtualHost
Set up a virtual host for your server. There's a standard Apache Virtualhost file ready to be adapted in the bundle's Extra/VirtualHost folder., (*8)
Add GroceriesManager Bundle
php ../composer.phar require "wpierre/groceries_manager":"dev-master", (*9)
Enable GroceriesManager in Symfony
Edit your /app/AppKernel.php and add the text below to the list of enabled bundles :, (*10)
new WPierre\GroceriesManagerBundle\WPierreGroceriesManagerBundle(),, (*11)
Enable Scafo's routes
Edit your /app/config/routing.yml and add :, (*12)
w_pierre_groceries_manager:
    resource: "@WPierreGroceriesManagerBundle/Resources/config/routing.yml"
    prefix: /, (*13)
Please mind the spaces if you're not familiar with YAML syntax (no leading space for the first line, four for the others)., (*14)
Install the assets
GroceriesManager bundle contains several assets, including Bootstrap and jQuery. You have to install them using :, (*15)
php app/console assets:install, (*16)
You should see a line about GroceriesManagerBundle., (*17)
Setup the database
Groceries Manager needs a database and you configured one while installing Symfony.
If the database already exists, please use :, (*18)
php app/console doctrine:schema:update --force, (*19)
If it doesn't exist yet, please use :, (*20)
php app/console doctrine:database:create, (*21)
Clear the caches
Run these two commands to clear your Symfony caches :, (*22)
php app/console cache:clear --env=dev
php app/console cache:clear --env=prod, (*23)
Test it !
According to your virtual host configuration, this might change, but if you didn't change anything, open http://localhost:8087.
Begin by creating categories (Fruits, Vegetables, Breakfast, Beverages...), then add items to categories and finally, create a list and start using your new tool !, (*24)