-
Notifications
You must be signed in to change notification settings - Fork 14
Lesson: start the application & search for results
- 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
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.
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.
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.
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.
- Dive into Hydra-Works
- Lesson: Generate a Rails Application
- Lesson: Add the Hydra Dependencies
- Lesson: Start FCRepo and Solr
- Lesson: Start the Application & Search for Results
- Lesson: Define models with Hydra-Works
- Lesson: Create instances of Hydra-Works models
- Lesson: Explore Objects in Fedora and Solr
- Lesson: Make Blacklight Return Search Results
- BONUS Lessons
- Aggregations API Documentation
- Application Profile