This is the README-file for ESV

ESV is a ruby on rails application designed to help schools manage orders in their canteen.
This Version was created by Armin Feistenauer as part of a Bachelorarbeit and is released under the GPLv3.
For further Licence details see http://www.gnu.org/licenses/gpl.html!


##### INSTALLATION ####

1. Get the source files
These should be in this package

2. Configuration
Copy the file config/config-sample.yml to config/config.yml
Copy the file config/database-sample.yml to config/database.yml
Change database.yml file to connect with your mysql-Database
Create the user and databases!

3. Ruby
Install Ruby v1.8.6 or 1.8.7 (1.9 could be problematic)

4. Rails
Install Rails. Instructions can be found here: http://rubyonrails.org/download

5. move to the root directory of the esv project cd path


6. install required gems
gem install mysql



7. populate database
with "rake db:schema:load RAILS_ENV=development" you can now create the tables in the development environment

8. Add an admin User
ruby script/console start the console.
Enter the commands:

adminrole = Role.find_by_name("Admin")
admin = User.new(:login => "100", :forename => "Max", :surname => "Mustermann", :password => "geheim", :password_confirmation => "geheim")
admin.roles << adminrole
admin.save

This created a user with login 100 and password "geheim".

9. run server
ruby script/server start the application on localhost and port 3000

You should now be able to login with the Adminuser and enjoy the project.



If you experience any problems or need any help contact me at armin@inf.fu-berlin.de!