/sales_clerk

The online shop of rubyclerks

Primary LanguageRubyMIT LicenseMIT

Build Status Code Climate Test Coverage

Sales Clerk

The online shop of rubyclerks serves two major functions:

  • functionally it is the online store
  • technically it is your main repository (see installation)

This is a bit like a skin/template for a shop. There will be others with different styles and only for product display.

See it online here, but please don't create accounts. To see the admin side, read the guides or clone the repository.

Rubyclerks, OfficeClerk

Rubyclerks is a complete small business management solution. OfficeClerk is the main backend and provides most of the functionality.

Other Clerks provide functionality like:

In this respect SalesClerk is the online shop that you may (or may not) wish to run. The SalesClerk application uses all of the above extensions.

Views and ownership

As most of the functionality is actually in the other clerks, SalesClerk contains mostly "just" the views that make up how a shop looks.

We say "just", as this is not a small matter for anyone but the most tech-oriented. Previous experience has shown though, that tastes vary greatly and so there is little sense in even trying to make this a general thing.

Technically speaking SalesClerk is a Rails4 application, while all other clerks are Rails Engines.

Installation

The installation instructions here focus on the case of a new shop (or a tryout). In case you have an existing rails application and want to add e-commerce functionality to it, please read the online developer guide (or see office_clerk for now). In that case you will probably want to grab the views and ShopController from this repository to start you on making a front end.

Clone

The quickest way to get started is to clone this repository,

  git clone https://github.com/rubyclerks/sales_clerk.git
  cd sales_clerk
  bundle

Get running

Assuming db settings are ok (sqlite), create the db

  rake db:migrate

and either create a user manually in the rails console (with admin => true) or use the task

  rake db:create_admin

to create an admin with email admin@example.com and password: password.

  rails s

and you're up. Though that is just a bleak view without categories, so you will probably want to log in (top right) and start creating some.

You can also load a sample database using task

rake db:load_fixtures_en

It already includes an example admin (as above).

Configuration

RubyClerks configuration is in config files , specifically config/locales/config.yml

Check config/environments/production.rb and change email setting.

Off course you may wish to add or remove other clerks or extensions by adding them to your Gemfile.

Take ownership

Change the name of your directory, remove the .git directory in it and possibly create a new by using git init.

Alternatively you may fork the project on github and then rename it.

Start developing

The app is mostly views and assets, which you will want to change.

Contribute

Most new features should be possible as extensions. If you have one that you think will be useful to others and you will maintain in the future, we may add it to the rubyclerks organisation.

Off course if you find bugs or have additions to the other clerks, see there for guidelines.

Further reading

If you got this far and still have question, mail me, or mail the list

Check the User Guide, then the Developer Guide.

Fill issues if you find, or discuss with me for ideas.