-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
66 lines (48 loc) · 1.97 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
General information
===================
This is what powers Lincomp, my online store. The system focuses on
a lot of automation in the backend, e.g. automatically retrieving new
prices and products from CSV files, automatically switching to the
chepest one offered by any supplier, etc.
It's probably useless for you, but we've put the source out there
anyhow.
Requirements
============
* Ruby 1.9.3 (can't guarantee anything for jRuby or Ruby 1.9.2)
* Debian GNU/Linux (not tested on anything else)
* MySQL (because of Sphinx)
* Sphinx (for fulltext search)
Installation
============
The installation is quite typical for a Rails project, but here it is
step by step:
* Grab source code
* Go to the directory you have the source in
* `bundle install`
* Edit config/database.yml to suit your database config
* Edit config/stizun.yml to your liking
* `bundle exec rake db:migrate`
* Edit db/seeds.rb to your liking (change the values to something reasonable)
* `bundle exec rake db:seed`
* `bundle exec rake ts:conf ts:reindex ts:start`
* `bundle exec rails s`
* Go to http://localhost:3000
* Register a new user
* `bundle exec rails c`
* `u = User.first`
* `u.groups << Usergroup.where(:name => 'Admin').first`
* `u.save`
Repeat this in your production environment (`RAILS_ENV=production`) when you're
ready to go into production mode.
Copryight and licensing statement
=================================
Stizun, (C) 2010 - 2012 Ramón Cahenzli
This is Free Software distributed under the terms of the Apache 2.0 license.
See the file LICENSE for the full text of the license.
It is also available on the Web: http://www.apache.org/licenses/LICENSE-2.0.txt
Licenses of included works
==========================
It is possible that this source code distribution includes code (libraries,
plugins, extensions, samples, etc.) that belong to other owners than the one
stated above. In such a case, the license included with the code in question
has precedence over the Apache license.