This page is about working notes for the latest in the development tree.
= How to Get Amahi Edge Running (Amahi 7) =
This assumes you have ruby 1.9.3 installed in your system:
# download the latest tarball or get the latest git repo code# extract the tarball into your user folder use tar or your file manager-extract function# cd /amahi-7# bundle install (this will install all the necessary gems)# rake db:create (this will ask for the mysql root password with a prompt ">" -- note that it will echo the password)# rake db:migrate (this will get the database up to par)# rails s (this will start the rails server) The below development dashboard can be reached with your favorite browser at: <code>http://localhost:3000</code> To stop the development server, just hit <code>Ctrl+C</code> in the terminal where you started the server. == Run Tests == A great way to contribute is old to write tests. The spec tests are in the <code>spec/</code> directory. To run them: rake spec It will show you one dot per test passing. It will show test fails with F and display the error. = Old info for Amahi 6:=
First you need to get the latest git repository (see how on the [[Contribute]]-page)
<code>./script/server</code>
THIS is the new steps for Amahi 7:
Step by step tutorial for setting up the new Amahi-7 Ruby on Rails developer code
This tut assumes you have Ruby and rails installed as a normal user and a directory for new projects somewhere in your home directory.
1) download the latest tarball from http://alpha.amahi.org/tmp/ <br/>
2) extract the tarball into your user folder use tar or your file manager-extract function <br/>
3) then cd /amahi-7 ; bundle install; rake db:create; rake db:migrate; rails s <br/>
4) After that go to your browser and do the below: <br/>
The development dashboard can be reached with your favorite browser using the link <code>http://ip.addr.of.dev:3000</code>
Or simply:
<code>http://localhost:3000</code>
To stop the development server, just hit <code>Ctrl+C</code> in the terminal where you started the server.
= How to install one Gadget =