1. Shop Installation
    1. Shop Creation
    2. Configuration
    3. Database Construction
    4. Shop Registration
  2. Destruction
    1. Shop Unregistration
    2. Shop Destruction

Shop Installation

Because Cassiopeia provides multi-shop management system, shop installation is necessary step when creating new shop.

Shop Creation

Create new directories and files for new shop at the shop/ directory under the Cassiopeia root directory. This can be done just run following command.

Suppose that the new shop's username is test, run create_shop.rb on the bin/ directory under the Cassiopeia root directory.

% ruby bin/create_shop.rb test

Configuration

Please edit the file config.rb under the new shop directory. Following fields MUST be modified.

  • USE_SSL: Whether to use secure connection or not. true or false.
  • Database configuration
    • DB_SERVER: Database server domain or IP address.
    • DB_DATABASE: Database name.
    • DB_USERNAME: User name to be able to access the database.
    • DB_PASSWORD: Password for DB_USERNAME.
  • SMTP_SERVER: SMTP server domain or IP address.

Database Construction

Create required database tables to database which is specified by config.rb (see Configuration). This can be done just run following command.

Suppose that the new shop's username is test, run init_db.rb on the bin/ directory under the Cassiopeia root directory.

% ruby bin/init_db.rb test

Default user creation

Register new shop user to the database with its password. Please make sure to remember the password. This can be done just run following command.

Suppose that the new shop's username is test, password is x5WYe82, run init_db.rb on the bin/ directory under the Cassiopeia root directory.

% ruby bin/register_shop.rb test x5WYe82

Destruction

Shop Unregistration

Unregister shop user from the database. This can be done just run following command.

Suppose that the new shop's username is test run unregister_shop.rb on the bin/ directory under the Cassiopeia root directory.

% ruby bin/unregister_shop.rb test

Shop Destruction

Delete shop directories and files on the shop/ directory under the Cassiopeia root directory. This can be done just run following command.

Suppose that the new shop's username is test run remove_shop.rb on the bin/ directory under the Cassiopeia root directory.

% ruby bin/remove_shop.rb test