Skip to content

A web front end for prefixcommons using angular and elasticsearch

License

Notifications You must be signed in to change notification settings

prefixcommons/prefixcommons-ui-ang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

prefixcommons webapp

A web front end for prefixcommons using angular and elasticsearch

install elasticsearch 2.2

enable CORS by adding the following to config/elasticsearch.yml :

 http.cors.enabled: true
 http.cors.allow-origin: /https?:\/\/localhost(:[0-9]+)?/

restart the elasticsearch server.

delete any prior instance of the registry

curl -XDELETE http://localhost:9200/prefixcommons

create a new instance of the registry

curl -XPUT http://localhost:9200/prefixcommons -d @mappings.json

load the registry contents

curl -XPUT http://localhost:9200/_bulk?pretty --data-binary @registry.json

setup the webapp for apache

Alias /prefixcommons /path/to/webapp/html
<Directory /path/to/webapp/html>
  DirectoryIndex index.html
  Options -Indexes -FollowSymLinks -MultiViews
  AllowOverride All
  Require all granted
</Directory>

setting up access to elasticsearch

<VirtualHost *:80>
  ServerName   search.prefixcommons.org
  ErrorLog     logs/prefixcommons_log
  CustomLog    logs/prefixcommons_log combined

Header set Access-Control-Allow-Origin "*"

<Proxy http://localhost:9201>
  ProxySet connectiontimeout=5 timeout=90
</Proxy>

<LocationMatch "^(/|/_aliases|.*/_search|.*/_mapping|/_cluster.*|/_status.*|/_nodes)$">
   ProxyPassMatch http://localhost:9201
   ProxyPassReverse http://localhost:9201
</LocationMatch>

<Location />
    Order allow,deny
    Allow from all
    <LimitExcept HEAD GET POST OPTIONS>
        Deny from all
    </LimitExcept>
</Location>
</Virtualhost>

About

A web front end for prefixcommons using angular and elasticsearch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published