-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathINSTALL
More file actions
24 lines (15 loc) · 824 Bytes
/
Copy pathINSTALL
File metadata and controls
24 lines (15 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=== Running the Repertoire Faceting Demo
Rails recommendation is to use database-specific schema dump and seeding files
unless your application is explicitly cross-database. However, for clarity
migrations are used in the demo application.
Build the faceting library and install it in your PostgreSQL database server.
$ rake db:faceting:extensions:install { sudo will prompt your password }
Set up the demo's database and load the faceting extensions.
$ rake db:create
$ rake db:migrate
Load with sample data (this can take a while... get a coffee).
$ rake db:seeds:generate { creates data/citizens.sql }
$ cat data/*.sql | psql -Upostgres repertoire_faceting_example
And add the facet indices and run:
$ rake reindex
$ bundle exec rails s { see http://localhost:3000/nobelists }