-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Donapieppo edited this page Jul 13, 2016
·
7 revisions
Got is a project made in ruby on rails with mysql database. So you must have the 2.x ruby language and a mysql server.
Got has only the master branch for now.
git clone git@github.com:donapieppo/got.git
cd got
bundle installcp doc/dm_unibo_common.yml config
cp doc/got_example.rb config/initializers/got.rband change the two files according to
your needs.
They are different becouse config/dm_unibo_common.yml
is usually shared with different projects while the other
is more specific to one single appication.
Create the database got and got_test and
set GOT_DATABASE_PASSWORD and
DEVISE_SECRET_KEY in ENV (see config/database.yml)
for got user.
For example put
export GOT_DATABASE_PASSWORD='verysecurepasswordtochange'`
export SECRET_KEY_BASE_GOT='verysecuresecretkeye71dedghqhjhjqhdhqhdhgwhqverysecureiamreally'
export DEVISE_SECRET_KEY='2ac52c092e4542403ref72104ab7e6a5d9er3db43115b4346da7520428dfec8703451a760ee3e0ed292ab98664e4e642254e94b238cr91e5f3f19r0994c69aa8'in .bashrc
Now load the database schema.
rake db:create
rake db:schema:loadand some sample data (vendors like HP, Dell, Kyocera, printers like hp 4300)
mysql got < doc/starting_vendors_toner_models_printer_models.sql