Skip to content

Lesson: start the application & search for results

E. Lynette Rayle edited this page Dec 21, 2015 · 2 revisions

Goals

  • Start and Stop a local "development" copy of the application
  • Remove the default Welcome page provided by Rails
  • Run a Search in Blacklight through your browser

Steps

Step 1: Start the Rails server

Now, let's see our model on the web. You can start 'webrick', a development server that comes with rails by typing:

rails server

Leave this terminal window open through the rest of the tutorial. It will print info whenever the server does anything. You will return to this window when you want to stop or restart the server.

Step 2: Look at the application in your Browser and customize the home page

Now you can visit your local copy of the application with a web browser when you go to http://localhost:3000/.

The default home page gives instructions for customizing the home page: essentially, create a app/views/catalog/_home_text.html.erb with the content you want. After saving that file and reloading in the browser you should see your changes.

Step 3: Run a Search

If you enter a search query you don't see any results because we haven't created any objects yet -- your Solr index is empty.

In the next lessons we will create a objects in your Fedora repository, then we will show you how to make them appear in your search results.

Next Step

Go on to Lesson: Define models with Hydra-Works to build RDF object models based on Hydra-Works, or return to the Dive into Hydra-Works page.

Clone this wiki locally