Skip to content

Installation

Donapieppo edited this page Jul 13, 2016 · 7 revisions

Requirements

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.

Clone

Got has only the master branch for now.

git clone git@github.com:donapieppo/got.git
cd got
bundle install

Configuration

cp doc/dm_unibo_common.yml config
cp doc/got_example.rb config/initializers/got.rb

and 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.

Database

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:load

and some sample data (vendors like HP, Dell, Kyocera, printers like hp 4300)

mysql got < doc/starting_vendors_toner_models_printer_models.sql

Clone this wiki locally