GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Adds basic social networking capabilities to your existing application, including users, blogs, photos, clippings, favorites, and more.
Homepage: http://www.communityengine.org
Clone URL: git://github.com/bborn/communityengine.git
yay, pretty readme
bborn (author)
Fri Oct 03 10:36:35 -0700 2008
commit  aa2f75be38f993649fcaa53c25ad5d3e7389f259
tree    08e4831026e6047ab0590b6fc870c1324c671134
parent  f1522eec6317575c264a299ac07aa30fa1e4946e
...
1
 
2
3
4
...
17
18
19
20
 
21
22
23
24
 
25
26
27
 
28
29
 
30
31
 
32
33
 
34
35
 
36
37
 
38
39
 
40
41
 
42
43
 
44
45
 
46
47
 
48
49
 
50
51
52
53
54
 
 
 
 
55
56
57
58
59
 
 
 
 
60
61
62
63
64
 
 
 
 
65
66
 
67
68
69
 
 
70
71
 
72
73
74
75
76
77
 
 
 
 
 
78
79
 
80
81
 
82
83
 
84
85
 
86
87
 
88
89
90
91
 
 
 
92
93
 
94
95
96
 
 
97
98
 
99
100
101
102
 
 
 
103
104
105
106
107
 
 
 
108
109
110
...
114
115
116
117
 
118
119
120
...
128
129
130
131
132
133
134
135
 
136
137
138
...
148
149
150
151
 
 
152
153
154
155
156
157
158
159
160
161
162
163
164
 
 
 
 
 
 
 
165
166
 
167
168
 
169
170
 
171
172
 
173
174
175
176
177
 
178
179
180
...
 
1
2
3
4
...
17
18
19
 
20
21
22
23
 
24
25
26
 
27
28
 
29
30
 
31
32
 
33
34
 
35
36
 
37
38
 
39
40
 
41
42
 
43
44
 
45
46
 
47
48
 
49
50
 
 
 
 
51
52
53
54
55
 
 
 
 
56
57
58
59
60
 
 
 
 
61
62
63
64
65
 
66
67
 
 
68
69
70
 
71
72
 
 
 
 
 
73
74
75
76
77
78
 
79
80
 
81
82
 
83
84
 
85
86
 
87
88
 
 
 
89
90
91
92
 
93
94
 
 
95
96
97
 
98
99
 
 
 
100
101
102
103
104
105
 
 
106
107
108
109
110
111
...
115
116
117
 
118
119
120
121
...
129
130
131
 
132
133
134
 
135
136
137
138
...
148
149
150
 
151
152
153
154
155
156
157
158
 
 
 
 
 
 
 
159
160
161
162
163
164
165
166
 
167
168
 
169
170
 
171
172
 
173
174
175
176
177
 
178
179
180
181
0
@@ -1,4 +1,4 @@
0
-COMMUNITY ENGINE
0
+CommunityEngine
0
 ================
0
 
0
 Information at: [www.missingmethod.com/projects/community_engine](www.missingmethod.com/projects/community_engine)
0
@@ -17,94 +17,95 @@ Requirements:
0
    haml
0
    aws-s3 (if using s3 for photos)
0
 
0
-GETTING COMMUNITY ENGINE RUNNING
0
+Getting CommunityEngine Running
0
 --------------------------------
0
 1. From the command line
0
 
0
- $rails site_name (create a rails app if you don't have one already)
0
+ $rails site_name (create a rails app if you don't have one already)
0
 
0
     
0
-Install the engines plugin:
0
+2. Install the engines plugin:
0
 
0
- $ script/plugin install git://github.com/lazyatom/engines.git
0
+ $ script/plugin install git://github.com/lazyatom/engines.git
0
   
0
-Put the community engine plugin into plugins directory (use one of the following methods):
0
+3. Put the community engine plugin into plugins directory (use one of the following methods):
0
 
0
-*If you're not using git, and just want to add the source files:*
0
+ * If you're not using git, and just want to add the source files:
0
 
0
- Download a tarball from https://github.com/bborn/communityengine/tarball/master and unpack it into /vendor/plugins/community_engine
0
+ Download a tarball from https://github.com/bborn/communityengine/tarball/master and unpack it into /vendor/plugins/community_engine
0
 
0
-*Using git, make a shallow clone of the community_engine repository:*
0
+ * Using git, make a shallow clone of the community_engine repository:
0
 
0
- $ git clone --depth 1 git://github.com/bborn/communityengine.git vendor/plugins/community_engine
0
+ $ git clone --depth 1 git://github.com/bborn/communityengine.git vendor/plugins/community_engine
0
 
0
-*If you want to keep your community_engine plugin up to date using git, you'll have to add it as a submodule:*
0
+ * If you want to keep your community_engine plugin up to date using git, you'll have to add it as a submodule:
0
   
0
- http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#submodules
0
+ http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#submodules
0
 
0
-Create your database and modify your `config/database.yml` appropriately.
0
+4. Create your database and modify your `config/database.yml` appropriately.
0
 
0
-Delete public/index.html (if you haven't already)
0
+5. Delete public/index.html (if you haven't already)
0
 
0
-Modify your environment.rb as indicated below:
0
+6. Modify your environment.rb as indicated below:
0
 
0
- ## environment.rb should look something like this:
0
- RAILS_GEM_VERSION = '2.1' unless defined? RAILS_GEM_VERSION
0
- require File.join(File.dirname(__FILE__), 'boot')
0
- require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
0
+ ## environment.rb should look something like this:
0
+ RAILS_GEM_VERSION = '2.1' unless defined? RAILS_GEM_VERSION
0
+ require File.join(File.dirname(__FILE__), 'boot')
0
+ require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
0
 
0
- Rails::Initializer.run do |config|
0
- #resource_hacks required here to ensure routes like /:login_slug work
0
- config.plugins = [:engines, :community_engine, :white_list, :all]
0
- config.plugin_paths += ["#{RAILS_ROOT}/vendor/plugins/community_engine/engine_plugins"]
0
+ Rails::Initializer.run do |config|
0
+ #resource_hacks required here to ensure routes like /:login_slug work
0
+ config.plugins = [:engines, :community_engine, :white_list, :all]
0
+ config.plugin_paths += ["#{RAILS_ROOT}/vendor/plugins/community_engine/engine_plugins"]
0
 
0
- ... Your stuff here ...
0
- end
0
- # Include your application configuration below
0
- require "#{RAILS_ROOT}/vendor/plugins/community_engine/engine_config/boot.rb"
0
+ ... Your stuff here ...
0
+ end
0
+ # Include your application configuration below
0
+ require "#{RAILS_ROOT}/vendor/plugins/community_engine/engine_config/boot.rb"
0
 
0
-Modify each environment file (`development.rb`, `test.rb`, and `production.rb`) as indicated below:
0
+7. Modify each environment file (`development.rb`, `test.rb`, and `production.rb`) as indicated below:
0
 
0
- # development.rb, production.rb, and test.rb should include something like:
0
- APP_URL = "http://localhost:3000" (or whatever your URL will be for that particular environment)
0
+ # development.rb, production.rb, and test.rb should include something like:
0
+ APP_URL = "http://localhost:3000" (or whatever your URL will be for that particular environment)
0
 
0
-Modify your routes.rb as indicated below:
0
+8. Modify your routes.rb as indicated below:
0
 
0
- # Add this after any of your own existing routes, but before the default rails routes:
0
- map.from_plugin :community_engine
0
- # Install the default routes as the lowest priority.
0
- map.connect ':controller/:action/:id'
0
- map.connect ':controller/:action/:id.:format'
0
+ # Add this after any of your own existing routes, but before the default rails routes:
0
+ map.from_plugin :community_engine
0
+ # Install the default routes as the lowest priority.
0
+ map.connect ':controller/:action/:id'
0
+ map.connect ':controller/:action/:id.:format'
0
 
0
-Generate the community engine migrations:
0
+9. Generate the community engine migrations:
0
 
0
- $ script/generate plugin_migration
0
+ $ script/generate plugin_migration
0
     
0
-From the command line:
0
+10. From the command line:
0
   
0
- $ rake db:migrate
0
+ $ rake db:migrate
0
 
0
-You may need to change these lines in `application.rb` (if you're not using cookie sessions):
0
+11. You may need to change these lines in `application.rb` (if you're not using cookie sessions):
0
 
0
- # See ActionController::RequestForgeryProtection for details
0
- # Uncomment the :secret if you're not using the cookie session store
0
- protect_from_forgery # :secret => 'your_secret_string'
0
+ # See ActionController::RequestForgeryProtection for details
0
+ # Uncomment the :secret if you're not using the cookie session store
0
+ protect_from_forgery # :secret => 'your_secret_string'
0
 
0
-Run tests (remember, you must run `rake test` before you can run the community_engine tests):
0
+12. Run tests (remember, you must run `rake test` before you can run the community_engine tests):
0
 
0
- $ rake test
0
- $ rake community_engine:test
0
+ $ rake test
0
+ $ rake community_engine:test
0
 
0
-Start your server and check out your site!
0
+13. Start your server and check out your site!
0
 
0
- $ mongrel_rails start
0
- or
0
- $ ./script/server
0
+ $ mongrel_rails start
0
+ or
0
+ $ ./script/server
0
 
0
 
0
 
0
-OPTIONAL CONFIGURATION
0
-----------------------
0
+Optional Configuration
0
+======================
0
+
0
 
0
 To override the default configuration, create an `application.yml` file in `RAILS_ROOT/config`
0
 
0
@@ -114,7 +115,7 @@ This is where you can change commonly used configuration variables, like `AppCon
0
 
0
 This YAML file will get converted into an OpenStruct, giving you things like `AppConfig.community_name`, `AppConfig.support_email`, etc.
0
 
0
-PHOTO UPLOADING
0
+Photo Uploading
0
 ---------------
0
 
0
 By default CommunityEngine uses the filesystem to store photos.
0
@@ -128,11 +129,10 @@ Finally, you'll need an S3 account for S3 photo uploading.
0
 
0
 Create an s3.yml file in RAILS_ROOT/config
0
 ------------------------------------------------------
0
-*OPTIONAL*
0
 
0
 CommunityEngine includes the `s3.rake` tasks for backing up your site to S3. If you plan on using these, you'll need to add a file in `RAILS_ROOT/config/s3.yml`. (Sample in `sample_files/s3.yml`)
0
 
0
-ROLES
0
+Roles
0
 ------
0
 
0
 CommunityEngine Users have a Role (by default, it's admin, moderator, or member)
0
@@ -148,33 +148,34 @@ There is a rake task to make an existing user into an admin:
0
 
0
 (Pass in the e-mail of the user you'd like to make an admin)
0
 
0
-THEMES
0
+
0
+Themes
0
 ------
0
 
0
 To create a theme:
0
 
0
 1. Add a 'themes' directory in RAILS_ROOT with the following structure:
0
 
0
- /RAILS_ROOT
0
- /themes
0
- /your_theme_name
0
- /views
0
- /images
0
- /stylesheets
0
- /javascripts
0
+ /RAILS_ROOT
0
+ /themes
0
+ /your_theme_name
0
+ /views
0
+ /images
0
+ /stylesheets
0
+ /javascripts
0
       
0
-2. Add 'theme: your_theme_name' to your application.yml (you'll have to restart your server after doing this)
0
+2. Add `theme: your_theme_name` to your `application.yml` (you'll have to restart your server after doing this)
0
 
0
-3. Customize your theme. For example: you can create a /RAILS_ROOT/theme/your_theme_name/views/shared/_scripts_and_styles.html.haml to override the default one, and pull in your theme's styleshees.
0
+3. Customize your theme. For example: you can create a `/RAILS_ROOT/theme/your_theme_name/views/shared/_scripts_and_styles.html.haml` to override the default one, and pull in your theme's styleshees.
0
 
0
-To get at the stylesheets (or images, or javascripts) from your theme, just add /theme/ when referencing the resource, for example:
0
+ To get at the stylesheets (or images, or javascripts) from your theme, just add /theme/ when referencing the resource, for example:
0
 
0
- = stylesheet_link_tag 'theme/screen' # this will reference the screen.css stylesheet within the selected theme's stylesheets directory.
0
+ = stylesheet_link_tag 'theme/screen' # this will reference the screen.css stylesheet within the selected theme's stylesheets directory.
0
 
0
 *Note: when running in production mode, theme assets (images, js, and stylesheets) are automatically copied to you public directory (avoiding a Rails request on each image load).*
0
 
0
 
0
-LOCALIZATION
0
+Localization
0
 ------------
0
 
0
 Localization is done via an extended version of [Globalite](http://code.google.com/p/globalite/).

Comments

    No one has commented yet.