piotrj / insoshi forked from insoshi/insoshi
- Source
- Commits
- Network (395)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
3b4257f
Piotr Jakubowski (author)
Tue Jul 01 00:31:01 -0700 2008
insoshi / README.rdoc
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 1 | = Insoshi social software | |
| 189a6c6b » | mhartl | 2008-02-18 | 2 | ||
| ffc3eaf7 » | mhartl | 2008-04-29 | 3 | NOTE: If you downloaded a zipped archive of Insoshi, we strongly encourage you to clone the Insoshi Git repository instead. See the instructions below, and also see | |
| 714b9bfa » | mhartl | 2008-04-26 | 4 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 5 | http://sites.google.com/a/insoshi.com/insoshi-guides/Installation | |
| 714b9bfa » | mhartl | 2008-04-26 | 6 | ||
| 7 | for more details. | ||||
| 8 | |||||
| 9 | To follow our progress, join the Insoshi developer community site at | ||||
| 10 | |||||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 11 | http://dogfood.insoshi.com/signup | |
| 714b9bfa » | mhartl | 2008-04-26 | 12 | ||
| 13 | and join the Insoshi Google group at | ||||
| 3c255dac » | mhartl | 2008-04-10 | 14 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 15 | http://groups.google.com/group/insoshi/subscribe | |
| 3c255dac » | mhartl | 2008-04-10 | 16 | ||
| 189a6c6b » | mhartl | 2008-02-18 | 17 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 18 | == Get Git | |
| 189a6c6b » | mhartl | 2008-02-18 | 19 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 20 | The source code to Insoshi is managed via Git, a version control system developed by Linus Torvalds to host the Linux kernel. | |
| 21 | |||||
| 22 | The first step is to install it from here: | ||||
| 189a6c6b » | mhartl | 2008-02-18 | 23 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 24 | http://git.or.cz/ | |
| 189a6c6b » | mhartl | 2008-02-18 | 25 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 26 | Linux and Mac users should have no problems; Windows users might have to install Cygwin (http://cygwin.com/) first. | |
| 189a6c6b » | mhartl | 2008-02-18 | 27 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 28 | For more detailed information, check out our guide for Installing Git under Git Guides at | |
| 29 | |||||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 30 | http://docs.insoshi.com | |
| 2a847e6d » | Long Nguyen | 2008-04-25 | 31 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 32 | == Install libraries and gems | |
| 189a6c6b » | mhartl | 2008-02-18 | 33 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 34 | === Libraries | |
| 189a6c6b » | mhartl | 2008-02-18 | 35 | ||
| 7cd47c9b » | mhartl | 2008-05-09 | 36 | You'll need to install FreeImage or some other image processor (such as ImageMagick/RMagick), SQLite, and (optionally) MySQL. Install instructions for all three are easy to find using Google. | |
| 189a6c6b » | mhartl | 2008-02-18 | 37 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 38 | === Gems | |
| 189a6c6b » | mhartl | 2008-02-18 | 39 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 40 | You probably have Rails already, but might not have the others. | |
| 189a6c6b » | mhartl | 2008-02-18 | 41 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 42 | $ sudo gem install rails | |
| 43 | $ sudo gem install ferret | ||||
| 44 | $ sudo gem install sqlite3-ruby | ||||
| 45 | $ sudo gem install mysql | ||||
| 189a6c6b » | mhartl | 2008-02-18 | 46 | ||
| 7cd47c9b » | mhartl | 2008-05-09 | 47 | If you're using FreeImage/ImageScience, you'll also need the image_science gem: | |
| 48 | |||||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 49 | $ sudo gem install image_science | |
| 7cd47c9b » | mhartl | 2008-05-09 | 50 | ||
| 51 | |||||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 52 | == Installing the app | |
| 189a6c6b » | mhartl | 2008-02-18 | 53 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 54 | Here are the steps to get up and running with the Insoshi Rails app. | |
| 189a6c6b » | mhartl | 2008-02-18 | 55 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 56 | === Git steps | |
| 189a6c6b » | mhartl | 2008-02-18 | 57 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 58 | Our public Git repository is hosted on GitHub and can be viewed at | |
| 59 | |||||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 60 | http://github.com/insoshi/insoshi | |
| 2a847e6d » | Long Nguyen | 2008-04-25 | 61 | ||
| 62 | You can clone the the repository with the command | ||||
| 189a6c6b » | mhartl | 2008-02-18 | 63 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 64 | $ git clone git://github.com/insoshi/insoshi.git | |
| 189a6c6b » | mhartl | 2008-02-18 | 65 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 66 | The clone make take a moment to complete (mainly due to the frozen Rails gems). | |
| 189a6c6b » | mhartl | 2008-02-18 | 67 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 68 | Then make a local Git branch for yourself: | |
| 189a6c6b » | mhartl | 2008-02-18 | 69 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 70 | $ git checkout -b <local_branch> | |
| 189a6c6b » | mhartl | 2008-02-18 | 71 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 72 | where you should replace <local_branch> with the name of your choice (without angle brackets!). | |
| 189a6c6b » | mhartl | 2008-02-18 | 73 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 74 | For more information on configuring your local clone of our repository, check out our Git Guides at | |
| 189a6c6b » | mhartl | 2008-02-18 | 75 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 76 | http://docs.insoshi.com | |
| 189a6c6b » | mhartl | 2008-02-18 | 77 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 78 | which also includes a scripted Quick Local Repository Setup. | |
| 189a6c6b » | mhartl | 2008-02-18 | 79 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 80 | === Config files and tests | |
| 189a6c6b » | mhartl | 2008-02-18 | 81 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 82 | You will to set up your database configuration. If you're using SQLite, you can just copy the example file | |
| 189a6c6b » | mhartl | 2008-02-18 | 83 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 84 | $ cp config/database.example config/database.yml | |
| 4da90111 » | mhartl | 2008-04-23 | 85 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 86 | If you're using MySQL, you'll need to create a configure the database.yml manually. The easiest way is to copy and modify one from an existing Rails application or from a new Rails project that explicitly uses MySQL (rails -d mysql <mysql project>). | |
| 87 | |||||
| 88 | Run the following custom rake task | ||||
| 4da90111 » | mhartl | 2008-04-23 | 89 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 90 | $ rake install | |
| 4da90111 » | mhartl | 2008-04-23 | 91 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 92 | The install rake task runs the database migration and performs some additional setup tasks (generate an encryption keypair for password management, creating an admin account, etc.) | |
| 93 | |||||
| 94 | If the install step fails, you may not have properly set up the configuration files. | ||||
| 95 | |||||
| 96 | Then prepare the test database and run the tests (which are actually RSpec examples in the spec/ directory): | ||||
| 4da90111 » | mhartl | 2008-04-23 | 97 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 98 | $ rake db:test:prepare | |
| 99 | $ rake spec | ||||
| 189a6c6b » | mhartl | 2008-02-18 | 100 | ||
| 7cd47c9b » | mhartl | 2008-05-09 | 101 | If the tests fail in the Photos controller test, double-check that an image processor is properly installed. | |
| 05949106 » | mhartl | 2008-04-09 | 102 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 103 | === Loading sample data | |
| 189a6c6b » | mhartl | 2008-02-18 | 104 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 105 | Now load the sample data and start the server: | |
| 189a6c6b » | mhartl | 2008-02-18 | 106 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 107 | $ rake db:sample_data:reload | |
| 108 | $ script/server | ||||
| 189a6c6b » | mhartl | 2008-02-18 | 109 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 110 | The rake task loads sample data to make developing easier. All the sample users have email logins <name>@example.com, with password foobar. | |
| 189a6c6b » | mhartl | 2008-02-18 | 111 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 112 | Go to http://localhost:3000 and log in as follows: | |
| 189a6c6b » | mhartl | 2008-02-18 | 113 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 114 | email: michael@example.com | |
| 115 | password: foobar | ||||
| 189a6c6b » | mhartl | 2008-02-18 | 116 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 117 | === Admin user | |
| 2a847e6d » | Long Nguyen | 2008-04-25 | 118 | ||
| 119 | To sign in as the pre-configured admin user, use | ||||
| 120 | |||||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 121 | email: admin@example.com | |
| 122 | password: admin | ||||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 123 | ||
| 124 | You should update the email address and password. Insoshi will display warning messages to remind you to do that. | ||||
| 125 | |||||
| a458cb78 » | mhartl | 2008-06-04 | 126 | To see site preferences such as email settings, click on the "Admin view" and the click on "Prefs" in the menu. Click the "Edit" link to customize the preferences for your particular site. | |
| 127 | |||||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 128 | === Start hacking | |
| 2a847e6d » | Long Nguyen | 2008-04-25 | 129 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 130 | Now open the source code with your favorite editor and start hacking! | |
| 189a6c6b » | mhartl | 2008-02-18 | 131 | ||
| 2a847e6d » | Long Nguyen | 2008-04-25 | 132 | Check out our Git Guides for information on how to manage your local development and how you can contribute your updates back to us: | |
| 133 | |||||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 134 | http://docs.insoshi.com | |
| 2a847e6d » | Long Nguyen | 2008-04-25 | 135 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 136 | == Stat tracker | |
| 189a6c6b » | mhartl | 2008-02-18 | 137 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 138 | Note that there is a minimalist stat tracker that lets us keep track of how many different installs of Isoshi are out there. We don't collect any personal information, but if you don't want to be tracked just open application.html.erb and comment out the line after this one: | |
| 189a6c6b » | mhartl | 2008-02-18 | 139 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 140 | <%# A tracker to tell us about the activity of Insoshi installs %> | |
| 189a6c6b » | mhartl | 2008-02-18 | 141 | ||
| 3b4257f0 » | Piotr Jakubowski | 2008-07-01 | 142 | == License | |
| 189a6c6b » | mhartl | 2008-02-18 | 143 | ||
| 3ca3eb2c » | mhartl | 2008-04-07 | 144 | See the file LICENSE. | |
