Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Merge pull request #522 from elcodi/fix/fixed-readme
Browse files Browse the repository at this point in the history
Fixed readme
  • Loading branch information
mmoreram committed Jun 14, 2015
2 parents 585325f + aedc7c1 commit 184f980
Showing 1 changed file with 65 additions and 68 deletions.
133 changes: 65 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,29 @@ Bamboo e-commerce

[![Build Status](https://travis-ci.org/elcodi/bamboo.svg?branch=master)](https://travis-ci.org/elcodi/bamboo)

> Warning. This project is not tagged as stable yet. It means that we don't
> promise BC between minor versions or patch versions. During the first quart of
> June we will release our first Beta version for developers. Stay Tuned and
> enjoy Elcodi.
Welcome to Bamboo e-commerce - a fully-functional e-commerce application built
using [Elcodi] components on top of the
[Symfony] framework.

Yes, you got it right! Bamboo uses the Symfony framework but our components are
framework agnostic, that is, they only depend on the Symfony components.
framework agnostic, that is, they only depend on the Symfony components as opposed to the whole framework or any of its distributions.

Why should I use Bamboo?
That's simple, to sell. We provide you with an interface to sell and to manage
That's simple, to sell your products. We provide you with an interface to sell your products and manage
your store. You only have to focus on offering a good product, we take care of
the rest.

## Requirements

### PHP

To use Bamboo and Elcodi you need a PHP version not less than **5.4**

For more info just visit their
[installation page](http://php.net/manual/en/install.php)

### Redis

Bamboo uses redis to make the app lighter and to minimize the response time.

For more info just visit their
Expand All @@ -40,8 +37,9 @@ sure your Redis version is at least `v2.8.9`.
Also, don't forget to install the php extension for redis.

### Imagick
The images are a really important part of an store. Bamboo uses Imagick to
resize and optimize all the product images

Images are a really important part of an store. Bamboo uses Imagick to
resize and optimize all product images

For more info just visit their
[installation page](http://php.net/manual/en/imagick.setup.php)
Expand All @@ -50,21 +48,23 @@ For more info just visit their
> path. Ensure to configure the parameter **imagick_convert_bin_path** right
### MySQL

And, where do you save your data? By default we use MySQL, remember to install
it as well as its extension for PHP

For more info just visit their
[installation page](http://dev.mysql.com/doc/refman/5.1/en/installing.html)

### Composer

[Composer] is required to manage dependencies.

if you have not yet installed Composer, download it following the instructions
on [http://getcomposer.org/](http://getcomposer.org/) or just run the following
command:

```bash
$ curl -s http://getcomposer.org/installer | php
``` bash
$ curl -s http://getcomposer.org/installer | php
```

## Installation
Expand All @@ -76,58 +76,59 @@ use any version, but we're still creating new features, fixing some issues and
errors, and building our first release, so be sure you are not using master, but
a closed version of the package.

```bash
$ php composer.phar create-project elcodi/bamboo path/ 0.5.*
``` bash
$ php composer.phar create-project elcodi/bamboo path/to/your/store/ 0.5.*
```

> The installation process will ask you for some parameters like the database
> driver, username, password, database name, etc
Enter your directory to start the configuration step

```bash
$ cd path/
``` bash
$ cd path/
```

### 2. Init your database

Now we should create the database and all the application schema. Symfony
provides you an easy way for doing that.

```bash
$ php app/console doctrine:database:create
$ php app/console doctrine:schema:create
``` bash
$ php app/console doctrine:database:create
$ php app/console doctrine:schema:create
```

We also load some fixtures to show on our store. This fixtures will set your
store in a testing mode, with some categories, some manufacturers and a bunch of
t-shirts. Just for testing :)
t-shirts. Only for testing purposes :)

```bash
$ php app/console doctrine:fixtures:load --fixtures="src/Elcodi/Fixtures" --no-interaction
``` bash
$ php app/console doctrine:fixtures:load --fixtures="src/Elcodi/Fixtures" --no-interaction
```

These fixtures will not install you any location data, but don't worry, we
provide you several ways for your location population.

> At the moment, only for Spain and France
We provide you some files with some countries dumped. You will find these files
inside `elcodi/geo-bundle` package, inside the `DataFixtures/ORM/Dumps` folder.
Because location tables are not using foreign keys, you can play with them as
much as you need.

You can also add the geo information for any country. Just find the two letters
[ISO code](http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes) for the
country you want to load and launch the following command changing ES with your
code.

```bash
$ php app/console elcodi:locations:populate ES
``` bash
$ php app/console elcodi:locations:populate ES
```

> This could take several minutes per country, be patient
### 3. Load and enable the template

Hey, we have some templates for you! Be sure to load 'em all!

```bash
$ php app/console elcodi:templates:load
$ php app/console elcodi:templates:enable StoreTemplateBundle
```

### 4. Load the plugins
### 3. Load the plugins

Bamboo offers a bunch of plugins to customize your store. In the ecosystem of
Bamboo, a Plugin is just a Bundle, so first of all, check that all the plugins
Expand All @@ -136,49 +137,46 @@ folder.

To install load these plugins, use this command

```bash
$ php app/console elcodi:plugins:load
```

### 5. Configure the store

When a store is created it's created "under construction", we can disable that
mode from the command line. Otherwise, you will not be able to view your new
awesome store.

```bash
$ php app/console elcodi:configuration:set store.under_construction "0"
$ php app/console elcodi:configuration:set store.name "\"My bamboo store\""
``` bash
$ php app/console elcodi:plugins:load
```

> All configurations can be modified from the Admin settings panel
The default template is a plugin as well, so you will install it as well with
this command.

### 6. Run the server
### 4. Run the server

Finally our store is ready to run :)

```bash
php app/console server:run
``` bash
$ php app/console server:run
```

> You can also [configure a Web server] like Apache or Nginx to run the app like
> all the Symfony apps.
### 7. Visit your store
### 5. Visit your store

Yehaaa!! We're done! You're about to see what Elcodi can do for you. A complete
Yehaaa! You're done! You're about to see what Elcodi can do for you. A complete
store interface for your customers and some nice features for administrating it.

You can start using these credentials we've already created for you.
You can start using these credentials we've already created for you. For the
admin panel use. Remember to remove them properly when your store is on
production.

- **Store:** [http://127.0.0.1:8000](http://127.0.0.1:8000)
- Customer username: customer@customer.com
- Customer password: 1234
- **Admin:** [http://127.0.0.1:8000/admin](http://127.0.0.1:8000/admin)
- Admin username: admin@admin.com
- Admin password: 1234
``` text
Admin username: admin@admin.com
Admin password: 1234
```

And for the store, use this Customer credentials.

### 8. Play!
``` text
Customer username: customer@customer.com
Customer password: 1234
```

### 6. Play!

You can now play with the bamboo :)
Don't forget to **create an issue** on
Expand All @@ -190,13 +188,13 @@ Any collaboration is welcome! We look forward to hearing from you!

Yes, we are doing some tests, and this will be **in cresciendo**. You can ensure
yourself that all the cases we've been working on are actually green. We are
using Behat and PHPUnit, so you only need to execute all Behat suites and phpunit tests
using Behat and PHPUnit, so you only need to execute all suites by using this
piece of code.

```bash
redis-cli flushall
rm -rf /tmp/Bamboo /tmp/*.backup.database app/cache/*
php bin/phpunit -c app/
php bin/behat
``` bash
$ php bin/behat
$ php bin/phpunit -c app
$ php app/console visithor:go --format=pretty --env=test
```

## Issues
Expand All @@ -208,8 +206,7 @@ You can report any issue on [Bamboo](https://github.com/elcodi/bamboo/issues) or

If you need any help with the installation or understanding elcodi or bamboo you
can contact us on [gitter](https://gitter.im/elcodi/elcodi).
We will be glad of helping you, just ask for help.

We will be glad to help you, just ask for help.

[Composer]: http://getcomposer.org/
[Symfony]: http://symfony.com
Expand Down

0 comments on commit 184f980

Please sign in to comment.