Difference between revisions of "DiscoverEd Quickstart"

From Creative Commons
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:DiscoverEd]]
 
[[Category:DiscoverEd]]
{{Stub}}
 
  
=== Check out and build the source code ===
+
== How to install DiscoverEd ==
<pre>
+
 
$ git clone git://gitorious.org/discovered/repo.git discovered
+
1. Run this command to download a quickstart script.
$ cd discovered
+
 
$ ant
+
<pre style='margin: 0 0 2em 2em;'>
 +
wget http://gitorious.org/discovered/repo/blobs/raw/deploy_script/gimme-discovered
 
</pre>
 
</pre>
  
=== Add a curator and a feed ===
+
2. Edit the script and change <tt>MYSQL_ROOT_PASSWORD</tt> to the right thing.
 +
 
 +
3. Run this command to execute the script.
 +
<pre style='margin: 0 0 2em 2em;'>
 +
bash gimme-discovered
 +
</pre>
  
DiscoverEd uses feeds to help identify resources to crawl.  Feeds are provided by curators, who can also provide metadata about resources.
+
=== What does the script do? ===
  
<pre>
+
This will do a few things:
$ ./bin/feeds addcurator "ND OCW" http://ocw.nd.edu/
+
* Install the DiscoverEd code in /var/lib/discovered
$ ./bin/feeds addfeed rss http://ocw.nd.edu/front-page/courselist/rss http://ocw.nd.edu/
+
* Add a sample curator, and a sample feed
</pre>
+
* Download the web pages linked to by that feed
 +
* Run a test search for the term "crime", and print the results to your terminal
  
=== Aggregate and crawl resources ===
+
The above steps are performed by DiscoverEd. Next, we install a copy of the excellent web server Tomcat, which will allow to you perform searches through your web browser. So the script will do a few more things:
 +
* Install a copy of the excellent web server Tomcat in the same place
 +
* Run that copy of Tomcat
 +
* Open the search engine in Firefox
  
<pre>
+
== Or do it manually ==
$ ./bin/feeds aggregate
 
$ mkdir seed
 
$ ./bin/feeds seed > seed/urls.txt
 
$ ant -f dedbuild.xml crawl
 
</pre>
 
  
=== Run the web server ===
+
See '''[[DiscoverEd/Install manually]]'''.

Revision as of 18:48, 7 May 2010


How to install DiscoverEd

1. Run this command to download a quickstart script.

wget http://gitorious.org/discovered/repo/blobs/raw/deploy_script/gimme-discovered

2. Edit the script and change MYSQL_ROOT_PASSWORD to the right thing.

3. Run this command to execute the script.

bash gimme-discovered

What does the script do?

This will do a few things:

  • Install the DiscoverEd code in /var/lib/discovered
  • Add a sample curator, and a sample feed
  • Download the web pages linked to by that feed
  • Run a test search for the term "crime", and print the results to your terminal

The above steps are performed by DiscoverEd. Next, we install a copy of the excellent web server Tomcat, which will allow to you perform searches through your web browser. So the script will do a few more things:

  • Install a copy of the excellent web server Tomcat in the same place
  • Run that copy of Tomcat
  • Open the search engine in Firefox

Or do it manually

See DiscoverEd/Install manually.