Welcome to the Bamboo Store - a fully-functional Ecommerce project application built on Elcodi components.
As Bamboo Store uses Composer to manage its dependencies, the recommended way to create a new project is to use it.
If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:
$ curl -s http://getcomposer.org/installer | php
The sample application has a few requirements:
- PHP5.4
- Imagemagick >= 6.X
- SQLite >= 3.X
Use the create-project
command to generate a new Bamboo Store
application:
$ php composer.phar create-project elcodi/bamboo-store <path/to/install> dev-master
Composer will install Bamboo Store and all its dependencies under the
path/to/install
directory.
Make sure that your local system is properly configured for Bamboo Store.
Enter the path/to/install
drectory and execute the check.php
script from the
command line:
$ php app/check.php
The script returns a status code of 0
if requirements are met, 1
otherwise.
Create the database and the schema
$ php app/console doctrine:database:create
$ php app/console doctrine:schema:create
You can now load the sample data by using the doctrine:fixture:load
command.
Remember that all Bamboo fixtures are placed in a repository called
BambooFixtures, so you must
configure the --fixtures
option with the right path.
$ php app/console doctrine:fixtures:load --fixtures="vendor/elcodi/bamboo-fixtures"
$ php app/console assets:install web
$ php app/console assetic:dump
You can run the application using php's built-in web server.
$ php app/console server:run localhost:8080
Point your browser to http://localhost:8080
and you are done!
You can login as an already registered customer using these credentials.
- email: customer@customer.com
- password: 1234