Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this document? Why not share!

ResaSystem - Epitech Innovative Projects

on

  • 906 views

 

Statistics

Views

Total Views
906
Slideshare-icon Views on SlideShare
906
Embed Views
0

Actions

Likes
0
Downloads
3
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    ResaSystem - Epitech Innovative Projects ResaSystem - Epitech Innovative Projects Document Transcript

    • EIP ManagerTechnical DocumentationGuillaume Joye2011_TD1_EN_RESASYSTEM.docxFA/EIP/FR/ET/002Version 2.0Ept4<br />Sommaire<br />Application diagram p.3<br />Flux diagram p.4<br />Interaction description p.5<br />Installation manual p.6<br />Bug references p.11<br />References .11<br />DB schema p.12<br />Application diagram <br />Members<br />Customers<br />Flux diagram<br />Application flux are the same for every website of this kind, there is the connexion time, the analysis of the user’s rights and the différents actions possible thanks to this rights. <br />Interaction description<br />Each users connects to be able to do search, he fill different things wich sort the ads posted by the owners. When rooms are find, the book is effective and with the grant of the owner, user pay for it. <br />Installation manual<br />Windows package<br />Folder description<br />- MySQL<br /> contains the MySQL database server installer<br />- PostgreSQL<br /> contains the PostgreSQL database server installer<br />- Ruby<br /> contains the Ruby environment<br /> all required RubyGems<br /> all required DLLs for Ruby<br />- resasystem<br /> contains ResaSystem<br />Installation/Configuration<br />MySQL<br />Installation:<br />- Launch the installer in the folder<br />- when asked choose " Typical" installation type<br />- Next/Install<br />- On " Wizard Completed" screen check only " Configure the MySQL Server now" <br />- configuration wizard opens<br />- Choose " Detailed configuration" <br />- Choose " Server Machine" <br />- Choose " Multifunctional Database" <br />- Choose InnoDB path (you can leave the default setting)<br />- Choose " Decision Support" <br />- Leave " TCP/IP Networking" and " Enable Strict Mode" checked<br />- Choose " Manual Seelcted Default Character Set" and set it to " utf8" <br />- Leave " Install As Windows Service" checked and check Include Bin Directory in Windows PATH" <br />- set root password<br />- Next/Execute/Finish<br />Configuration:<br />- In Windows " Start" menu, launch MySQL > MySQL Server > MySQL Command Line Client<br />- Prompt window opens, type in the root password choosen during the installation<br />- mysql prompt appears<br />- to create 'resasystem' database and user<br />mysql> CREATE DATABASE resasystem;<br />mysql> USE mysql;<br />mysql> CREATE USER 'resasystem'@'localhost' IDENTIFIED BY 'choose_a_password';<br />mysql> GRANT SELECT, UPDATE, INSERT, DELETE, CREATE, DROP, ALTER, INDEX, TRIGGER<br />-> ON resasystem.* TO 'resasystem'@'localhost';<br />if MySQL is already installed and you need to recover the root password<br />- Stop your MySQL server completely. This can be done by accessing the Services window inside Windows XP and Windows Server 2003, where you can stop the MySQL service.<br />- Open your MS-DOS command prompt using " cmd" inside the Run window. Inside it navigate to your MySQL bin folder, such as C:MySQLin using the cd command.<br />- Execute the following command in the command prompt: mysqld.exe -u root --skip-grant-tables<br />- Leave the current MS-DOS command prompt as it is, and open a new MS-DOS command prompt window.<br />- Navigate to your MySQL bin folder, such as C:MySQLin using the cd command.<br />- Enter " mysql" and press enter.<br />- You should now have the MySQL command prompt working. Type " use mysql;" so that we switch to the " mysql" database.<br />mysql> USE mysql;<br />mysql> UPDATE user SET Password = PASSWORD('new password here') WHERE User = 'root';<br />- create 'resasystem' database and user if needed<br />- Close both prompt windows, relaunch the MySQL service<br />PostgreSQL<br />Installation:<br />- Launch the installer<br />- Choose paths<br />- set postgres account password<br />- Choose the port if needed<br />- Choose the locale if needed<br />- Uncheck " Launch Stack Builder as exit" <br />- Finish<br />Configuration:<br />- In Windows " Start" menu, launch PostgreSQL > pgAdmin<br />- right click on localhost server on the left > " connect" <br />- put in the postgres password<br />- expand the server<br />- right click on " Login Roles" > " New Login Role" <br />Role Name : resasystem<br />Choose password<br />OK<br />- right click on " Databases" > " New database" <br />Name : resasystem<br />Owner: resasystem<br />Encoding: UTF8<br />OK<br />To recover postgres passwrord<br />- edit pg_hba.conf (by default in C:Program FilesPostgreSQL8.3data)<br />change line<br />" host all all 127.0.0.1/32 md5" <br />to<br />" host all all 127.0.0.1/32 trust" <br />- in Start menu > PostgreSQL > Reload Configuration<br />- in Start menu > PostgreSQL > pgAdmin<br />- right click on the local server, connect, leave password field blank<br />- right click on " postgres" in " Login Roles" > " Properties..." <br />- change the password, " OK" <br />- close pgAdmin<br />- revert pg_hba.conf file<br />- restart PostgreSQL server<br />Ruby<br />Launch the installer<br />- Check Enable RubyGems<br />- Choose path if needed<br />- Finish the installation<br />- In the " Start" menu, Ruby > RubyGems > RubyGems Package Manager<br />- prompt window opens<br />- with Internet connection<br />Ruby> gem install rubygems-update<br />Ruby> update_rubygems<br />Ruby> gem update --system<br />Ruby> gem update<br />Ruby> gem install --no-ri --no-rdoc <gem_name> (when required, with -v=needed_version)<br />gems to install:<br />- rails 2.3.5<br />- mysql<br />- ruby-postgres<br />- sqlite3-ruby<br />- rack 1.0.1<br />- without Internet<br />Ruby> gem install --no-ri --no-rdoc " path to ResaSystem-X-win32RubyRS_win_rubygems_sysupdate ubygems-update-1.3.6.gem" <br />Ruby> update_rubygems<br />Ruby> gem install --no-ri --no-rdoc " path to ResaSystem-X-win32RubyRS_win_rubygems_sysupdate*.gem" <br />Ruby> gem install --no-ri --no-rdoc " path to ResaSystem-X-win32RubyRS_win_rubygems*.gem" <br />- Copy all the DLLs from ResaSystem-X-win32RubyRS_win_rubydlls to C:Rubyin<br />ResaSystem<br />- copy somewhere resasytem folder<br />- go to resasystemconfig<br />- choose the database.dbtype.yml file depending on the database you are using<br />- replace the original database.yml with yours<br />- edit the database.yml<br />- change the connection section accordingly to the configuration of the database<br />- in windows command prompt<br />prompt> cd " path to resasystem" <br />resasystem> rake db:schema:load<br />resasystem> " path to ruby.exe" scriptserver<br />ruby.exe default path : C:Rubyin<br />server should start<br />- in a web browser open http://localhost:3000<br />Debian package<br />Folder description<br />- Debian<br />contains the necesseray packages<br />- Ruby<br />contains the necessary Ruby gems<br />- resasystem<br />contains ResaSystem<br />Installation/Configuration<br />MySQL<br />To recover MySQL root password, as system root do the following in a terminal<br />- stop the mysql daemon<br />#/etc/init.d/mysql(d) stop<br />- relaunch the daemon with new option<br />#mysqld --skip-grant-tables &<br />- launch mysql prompt<br />#mysql<br />mysql> USE mysql;<br />mysql> UPDATE user SET Password = PASSWORD('new password here') WHERE User = 'root';<br />create 'resasystem' database and user if needed<br />- relaunch the daemon<br />#/etc/init.d/mysql(d) restart<br />or<br />#/etc/init.d/mysql(d) stop<br />#/etc/init.d/mysql(d) start<br />PostgreSQL<br />To recover PostgreSQL password, as root<br />log in as postgres<br />#su - postgres<br />as postgres user, launch PosgreSQL prompt<br />$psql -d template1<br />template1=# ALTER USER postgres WITH PASSWORD 'new password';<br />template1=# q<br />Ruby<br />install as root <br />#dpkg -i Debian/debs/*.deb<br />#gem install --no-ri --no-rdoc rubygems-update.gem<br />#/var/lib/gems/1.8/bin/update_rubygems<br />#gem install --no-ri --no-rdoc Ruby/gems/*.gem<br />ResaSystem<br />- copy somewhere resasystem folder<br />- go to resasystemconfig<br />- choose the database.dbtype.yml file depending on the database you are using<br />- replace the original database.yml with yours<br />- edit the database.yml<br />- change the connection section accordingly to the configuration of the database<br />- in a terminal, navigate to resasystem folder<br />$ cd path/to/resasystem<br />$ rake db:schema:load<br />$ ruby script/server<br />server should start<br />- in a web browser open http://localhost:3000<br />Bugs references<br />Bug Gem « Devise » :<br />When user try to login in the member part of the website with a Customer account, if he select « log as member » the redirection target « after_sign_in_path_for » and then crash the application.<br />Bug Gem « Paperclip » : <br />This gem doesn’t work on Windows and there is a problem on the configuration file when using « imagemagick ». <br />References<br />- Official website of the ruby langage: http://www.ruby-lang.org/fr/. <br />- Documentations of the Framework Ruby-on-Rails : http://rubyonrails.org/ .<br />- Documentations of the développement manager application Github : http://help.github.com/<br />- Documentations of the hosting website for rails application Heroku: <br />: http://docs.heroku.com/<br />- Official documentation of the web development environment Aptana : http://docs.aptana.com/docs/index.php/Main_Page<br />- Website with many Podcast about Ruby-on-rails  development : http://railscasts.com/<br />DB Scheme<br />