<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cultivate.coop/w/index.php?action=history&amp;feed=atom&amp;title=Data_Commons_Directory</id>
	<title>Data Commons Directory - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cultivate.coop/w/index.php?action=history&amp;feed=atom&amp;title=Data_Commons_Directory"/>
	<link rel="alternate" type="text/html" href="https://cultivate.coop/w/index.php?title=Data_Commons_Directory&amp;action=history"/>
	<updated>2026-08-28T23:58:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://cultivate.coop/w/index.php?title=Data_Commons_Directory&amp;diff=92415&amp;oldid=prev</id>
		<title>WikiSysop at 16:42, 24 February 2016</title>
		<link rel="alternate" type="text/html" href="https://cultivate.coop/w/index.php?title=Data_Commons_Directory&amp;diff=92415&amp;oldid=prev"/>
		<updated>2016-02-24T16:42:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:42, 24 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l284&quot; &gt;Line 284:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 284:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(make sure you are in the &amp;quot;datacommons&amp;quot; directory when you do that).  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(make sure you are in the &amp;quot;datacommons&amp;quot; directory when you do that).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Articles]][[Category:Technology_and_cooperatives&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Technology&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://cultivate.coop/w/index.php?title=Data_Commons_Directory&amp;diff=7209&amp;oldid=prev</id>
		<title>Administrator at 14:17, 16 October 2012</title>
		<link rel="alternate" type="text/html" href="https://cultivate.coop/w/index.php?title=Data_Commons_Directory&amp;diff=7209&amp;oldid=prev"/>
		<updated>2012-10-16T14:17:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page details how to set up a [[Data Commons Project|Data Commons]] online directory, in the style of [http://find.coop find.coop]. It is intended for developers who wish to experiment with the directory on their own machine, modify it, and (ideally!) contribute to the project (see [[Data Commons Code Sprint|Data Commons Code Sprint]]). &lt;br /&gt;
&lt;br /&gt;
These instructions are for Ubuntu. To use these instructions for other platforms, you could use VirtualBox (e.g. for windows, [http://www.psychocats.net/ubuntu/virtualbox see here]). &lt;br /&gt;
&lt;br /&gt;
These instructions are based on: &lt;br /&gt;
&lt;br /&gt;
*http://bazaar.launchpad.net/~datacommons/datacommons/trunk/annotate/head%3A/doc/README&lt;br /&gt;
&lt;br /&gt;
== Prerequisites  ==&lt;br /&gt;
&lt;br /&gt;
Get ruby and rails, the language and web framework we use: &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install ruby rake rubygems ruby-dev libjson-ruby&lt;br /&gt;
 sudo gem install --version 2.2.2 --no-rdoc --no-ri rails&lt;br /&gt;
 sudo gem install --no-rdoc --no-ri ruport acts_as_reportable ferret geokit&lt;br /&gt;
&lt;br /&gt;
Get an interface to mysql, a database: &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install libmysqlclient-dev&lt;br /&gt;
 sudo gem install --no-rdoc --no-ri mysql&lt;br /&gt;
&lt;br /&gt;
Set up a mysql server on your machine, for testing: &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install mysql-server&lt;br /&gt;
&lt;br /&gt;
Keep note of any username/password combination you set up. You&amp;#039;ll need that later. &lt;br /&gt;
&lt;br /&gt;
Get the tool needed to download our software (and, if you are feeling generous, to send back changes): &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install bzr&lt;br /&gt;
&lt;br /&gt;
== The Directory Software  ==&lt;br /&gt;
&lt;br /&gt;
Pick a directory where you&amp;#039;d like to put the Data Commons Directory (DCD) software. Go there, and issue this command: &lt;br /&gt;
&lt;br /&gt;
  bzr branch lp:datacommons&lt;br /&gt;
&lt;br /&gt;
You should now have a copy of the DCD in a directory called &amp;quot;datacommons&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Enter the &amp;quot;datacommons&amp;quot; directory: &lt;br /&gt;
&lt;br /&gt;
  cd datacommons&lt;br /&gt;
&lt;br /&gt;
And configure the database: &lt;br /&gt;
&lt;br /&gt;
  cp config/database.yml.dist config/database.yml&lt;br /&gt;
&lt;br /&gt;
You&amp;#039;ll need to modify database.yml to match any username/password combination you set up for your mysql server. For example, if you like using the gedit editor: &lt;br /&gt;
&lt;br /&gt;
  gedit config/database.yml&lt;br /&gt;
 # now find username and password entries and replace them.&lt;br /&gt;
&lt;br /&gt;
Then create an empty database for the DCD: &lt;br /&gt;
&lt;br /&gt;
  rake db:create&lt;br /&gt;
 rake db:reset&lt;br /&gt;
 rake db:migrate&lt;br /&gt;
&lt;br /&gt;
(do &amp;quot;rake -T&amp;quot; to see all options) &lt;br /&gt;
&lt;br /&gt;
At this point, running a test server should work. Leave this running in a terminal: &lt;br /&gt;
&lt;br /&gt;
  script/server &lt;br /&gt;
&lt;br /&gt;
And then, from a browser, visit: &lt;br /&gt;
&lt;br /&gt;
  http://localhost:3000&lt;br /&gt;
&lt;br /&gt;
== Setting up mysql  ==&lt;br /&gt;
&lt;br /&gt;
If the rake commands above (rake db:) don&amp;#039;t work, one reason might have to do with your mysql setup. One way to set up a username/password in mysql is to log into mysql as root: &lt;br /&gt;
&lt;br /&gt;
  mysql -u root -p&lt;br /&gt;
&lt;br /&gt;
Create a new user and grant privileges: &lt;br /&gt;
&lt;br /&gt;
  CREATE USER &amp;#039;tester&amp;#039;@localhost IDENTIFIED BY &amp;#039;changeme&amp;#039;;&lt;br /&gt;
 GRANT ALL PRIVILEGES ON dcp_development.* TO &amp;#039;tester&amp;#039;@localhost;&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
Edit the database.yml file with this new username and password. The password, in the above example, would be &amp;quot;changeme&amp;quot;, without the quotes. Try your rake commands again. &lt;br /&gt;
&lt;br /&gt;
== Searching  ==&lt;br /&gt;
&lt;br /&gt;
Searching the DCD relies on a separate service. To get searching working, start up the &amp;quot;Ferret Server&amp;quot; before running the web server (script/server above): &lt;br /&gt;
&lt;br /&gt;
  script/ferret_server -e development -R $PWD start&lt;br /&gt;
&lt;br /&gt;
If the index has never been built (i.e. first installation, first run, etc.): &lt;br /&gt;
&lt;br /&gt;
  script/runner -e development &amp;#039;Organization.rebuild_index&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Committing changes  ==&lt;br /&gt;
&lt;br /&gt;
Changes should be developed first in your own &amp;quot;branch&amp;quot;, rather than trunk (lp:datacommons). &lt;br /&gt;
&lt;br /&gt;
To create a branch, visit: &lt;br /&gt;
&lt;br /&gt;
  https://code.launchpad.net/datacommons/+addbranch&lt;br /&gt;
 (choose &amp;quot;hosted&amp;quot; option)&lt;br /&gt;
&lt;br /&gt;
Remember the launchpad username you chose, you&amp;#039;ll be asked to provide it later. &lt;br /&gt;
&lt;br /&gt;
When you create a branch, you&amp;#039;ll be given a command like &amp;quot;bzr push ....&amp;quot; which can be used to put your changes online. You can then either send email to other DCP developers to have them review your work, or use the &amp;quot;propose merge&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
== Schema  ==&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s a snapshot of the schema used by the directory, for reference. To be sure you have an up-to-date schema, do &amp;quot;rake db:schema:dump&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
We allow each organization to have multiple locations, people, legal structures, organization types, business sectors, and products+services associated with it. This is nice and flexible, with one downside: to import/export from a spreadsheet, you may need to &amp;quot;flatten&amp;quot; things - maybe restrict organizations to have one location and a fixed number of people associated with it. &lt;br /&gt;
&lt;br /&gt;
Fields for &amp;quot;organizations&amp;quot;: &lt;br /&gt;
&lt;br /&gt;
  string   &amp;quot;name&amp;quot;&lt;br /&gt;
 text     &amp;quot;description&amp;quot;&lt;br /&gt;
 integer  &amp;quot;created_by_id&amp;quot;&lt;br /&gt;
 integer  &amp;quot;updated_by_id&amp;quot;&lt;br /&gt;
 string   &amp;quot;phone&amp;quot;&lt;br /&gt;
 string   &amp;quot;fax&amp;quot;&lt;br /&gt;
 string   &amp;quot;email&amp;quot;&lt;br /&gt;
 string   &amp;quot;website&amp;quot;&lt;br /&gt;
 date     &amp;quot;year_founded&amp;quot;&lt;br /&gt;
 boolean  &amp;quot;democratic&amp;quot;&lt;br /&gt;
 integer  &amp;quot;primary_location_id&amp;quot;&lt;br /&gt;
 datetime &amp;quot;created_at&amp;quot;&lt;br /&gt;
 datetime &amp;quot;updated_at&amp;quot;&lt;br /&gt;
 ... with cross-references to locations, people, legal structures, organization types, business sectors, products+services&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; For &amp;quot;locations&amp;quot;: &lt;br /&gt;
&lt;br /&gt;
  string   &amp;quot;note&amp;quot;&lt;br /&gt;
 string   &amp;quot;physical_address1&amp;quot;&lt;br /&gt;
 string   &amp;quot;physical_address2&amp;quot;&lt;br /&gt;
 string   &amp;quot;physical_city&amp;quot;&lt;br /&gt;
 string   &amp;quot;physical_state&amp;quot;&lt;br /&gt;
 string   &amp;quot;physical_zip&amp;quot;&lt;br /&gt;
 string   &amp;quot;physical_country&amp;quot;&lt;br /&gt;
 string   &amp;quot;mailing_address1&amp;quot;&lt;br /&gt;
 string   &amp;quot;mailing_address2&amp;quot;&lt;br /&gt;
 string   &amp;quot;mailing_city&amp;quot;&lt;br /&gt;
 string   &amp;quot;mailing_state&amp;quot;&lt;br /&gt;
 string   &amp;quot;mailing_zip&amp;quot;&lt;br /&gt;
 string   &amp;quot;mailing_country&amp;quot;&lt;br /&gt;
 float    &amp;quot;latitude&amp;quot;     (we generate this automatically)&lt;br /&gt;
 float    &amp;quot;longitude&amp;quot;  (we generate this automatically)&lt;br /&gt;
 datetime &amp;quot;created_at&amp;quot;&lt;br /&gt;
 datetime &amp;quot;updated_at&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For &amp;quot;people&amp;quot;: &lt;br /&gt;
&lt;br /&gt;
  string   &amp;quot;firstname&amp;quot;&lt;br /&gt;
 string   &amp;quot;lastname&amp;quot;&lt;br /&gt;
 string   &amp;quot;phone_mobile&amp;quot;&lt;br /&gt;
 string   &amp;quot;phone_home&amp;quot;&lt;br /&gt;
 string   &amp;quot;fax&amp;quot;&lt;br /&gt;
 string   &amp;quot;email&amp;quot;&lt;br /&gt;
 boolean  &amp;quot;phone_contact_preferred&amp;quot;&lt;br /&gt;
 boolean  &amp;quot;email_contact_preferred&amp;quot;&lt;br /&gt;
 datetime &amp;quot;created_at&amp;quot;&lt;br /&gt;
 datetime &amp;quot;updated_at&amp;quot;&lt;br /&gt;
&lt;br /&gt;
... and for the association between organizations and people (&amp;quot;contacts&amp;quot;)... &lt;br /&gt;
&lt;br /&gt;
  string   &amp;quot;role_name&amp;quot;&lt;br /&gt;
 string   &amp;quot;phone&amp;quot;&lt;br /&gt;
 string   &amp;quot;email&amp;quot;&lt;br /&gt;
 datetime &amp;quot;created_at&amp;quot;&lt;br /&gt;
 datetime &amp;quot;updated_at&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For &amp;quot;legal structure&amp;quot;: (this is technically an open-ended list of options) &lt;br /&gt;
&lt;br /&gt;
  Informal&lt;br /&gt;
 Cooperative&lt;br /&gt;
 Partnership&lt;br /&gt;
 Limited Liability Corporation (LLC)&lt;br /&gt;
 C Corp&lt;br /&gt;
 S Corp&lt;br /&gt;
 Non-profit Corporation&lt;br /&gt;
 501(c)3&lt;br /&gt;
 501(c)4&lt;br /&gt;
&lt;br /&gt;
For &amp;quot;organization types&amp;quot;: (this is technically an open-ended list of options) &lt;br /&gt;
&lt;br /&gt;
  Academic Institution or Program&lt;br /&gt;
 Activist or Social Change Organization&lt;br /&gt;
 Artist -Run/Owned Space&lt;br /&gt;
 Collective&lt;br /&gt;
 Community Center&lt;br /&gt;
 Community Currency or Barter Group&lt;br /&gt;
 Community Development Credit Union&lt;br /&gt;
 Community Development Financial Institution&lt;br /&gt;
 Community Garden Project&lt;br /&gt;
 Community Land Trust&lt;br /&gt;
 Community Supported Agriculture (CSA) Program&lt;br /&gt;
 Community-Building Group&lt;br /&gt;
 Conservation/Agricultural Land Trust&lt;br /&gt;
 Conventional Business&lt;br /&gt;
 Conventional Non-Profit&lt;br /&gt;
 Cooperative, Consumer&lt;br /&gt;
 Cooperative, Financial&lt;br /&gt;
 Cooperative, Housing&lt;br /&gt;
 Cooperative, Marketing&lt;br /&gt;
 Cooperative, Multi-Stakeholder&lt;br /&gt;
 Cooperative, Producer&lt;br /&gt;
 Cooperative, Retail&lt;br /&gt;
 Cooperative, Worker&lt;br /&gt;
 Credit Union&lt;br /&gt;
 ESOP&lt;br /&gt;
 Fair Trade Organization or Business&lt;br /&gt;
 Financial Institution Supporting Cooperatives&lt;br /&gt;
 Government Agency/Department/Program&lt;br /&gt;
 Intentional Community or Ecovillage&lt;br /&gt;
 Majority Owned ESOP&lt;br /&gt;
 Mutual-aid/Self-help Group&lt;br /&gt;
 Network, Association or Coalition&lt;br /&gt;
 Other Cooperative Financial Institution&lt;br /&gt;
 Support Organization&lt;br /&gt;
 Union or Other Labor Organization&lt;br /&gt;
&lt;br /&gt;
For &amp;quot;business sectors&amp;quot;: (this is technically an open-ended list of options) &lt;br /&gt;
&lt;br /&gt;
  Accomodation &amp;amp;amp; Food Services&lt;br /&gt;
 Arts &amp;amp;amp; Culture&lt;br /&gt;
 Childcare&lt;br /&gt;
 Community &amp;amp;amp; Economic Development&lt;br /&gt;
 Community-Building &amp;amp;amp; Mutual Aid&lt;br /&gt;
 Construction &amp;amp;amp; Repair&lt;br /&gt;
 Farm, Fish &amp;amp;amp; Forest&lt;br /&gt;
 Farm, Fish &amp;amp;amp; Forest_Animal Production&lt;br /&gt;
 Farm, Fish &amp;amp;amp; Forest_Crop Production&lt;br /&gt;
 Farm, Fish &amp;amp;amp; Forest_Fishing, Hunting &amp;amp;amp; Trapping&lt;br /&gt;
 Farm, Fish &amp;amp;amp; Forest_Forestry &amp;amp;amp; Logging&lt;br /&gt;
 Finance &amp;amp;amp; Insurance&lt;br /&gt;
 Government &amp;amp;amp; Public Administration&lt;br /&gt;
 Healthcare&lt;br /&gt;
 Housing &amp;amp;amp; Land&lt;br /&gt;
 Information Technology&lt;br /&gt;
 Labor Organization&lt;br /&gt;
 Legal Services&lt;br /&gt;
 Manufacturing&lt;br /&gt;
 Manufacturing_Fabricated Metals&lt;br /&gt;
 Manufacturing_Food &amp;amp;amp; Beverage Production&lt;br /&gt;
 Manufacturing_Furniture&lt;br /&gt;
 Manufacturing_Machinery, Computers, Electronics, &amp;amp;amp; Electrical Equipment&lt;br /&gt;
 Manufacturing_Other&lt;br /&gt;
 Manufacturing_Petroleum, Coal, Chemicals, Plastics, Minerals &amp;amp;amp; Metals&lt;br /&gt;
 Manufacturing_Printing&lt;br /&gt;
 Manufacturing_Textiles, Apparel &amp;amp;amp; Leather&lt;br /&gt;
 Manufacturing_Transportation Equipment&lt;br /&gt;
 Manufacturing_Wood &amp;amp;amp; Paper&lt;br /&gt;
 Media&lt;br /&gt;
 Mining&lt;br /&gt;
 Network, Coalition, or Association&lt;br /&gt;
 Organizational Support &amp;amp;amp; Development&lt;br /&gt;
 Personal Care &amp;amp;amp; Cleaning Services&lt;br /&gt;
 Private Household&lt;br /&gt;
 Religious or Spiritual&lt;br /&gt;
 Retail Trade&lt;br /&gt;
 Retail Trade_Books, Music &amp;amp;amp; Hobby Supplies&lt;br /&gt;
 Retail Trade_Clothing &amp;amp;amp; Accessories&lt;br /&gt;
 Retail Trade_Food, Beverages &amp;amp;amp; Health Supplies&lt;br /&gt;
 Retail Trade_Other&lt;br /&gt;
 Retail Trade_Vehicles, Furniture, Electronics, Tools &amp;amp;amp; Equipment&lt;br /&gt;
 Social Change Organization&lt;br /&gt;
 Social Services&lt;br /&gt;
 Transportation &amp;amp;amp; Warehousing&lt;br /&gt;
 Utilities&lt;br /&gt;
 Waste Management &amp;amp;amp; Remediation&lt;br /&gt;
 Wholesale Trade&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
For &amp;quot;products+services&amp;quot;: this is a completely open list. &lt;br /&gt;
&lt;br /&gt;
== Staying up to date  ==&lt;br /&gt;
&lt;br /&gt;
From time to time, the directory software may be updated. You can view updates here: &lt;br /&gt;
&lt;br /&gt;
*http://bazaar.launchpad.net/~datacommons/datacommons/trunk/changes/&lt;br /&gt;
&lt;br /&gt;
To merge them into your copy of the directory software, do: &lt;br /&gt;
&lt;br /&gt;
  bzr pull&lt;br /&gt;
&lt;br /&gt;
(make sure you are in the &amp;quot;datacommons&amp;quot; directory when you do that). &lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]][[Category:Technology_and_cooperatives]]&lt;/div&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
</feed>