A pastebin implemented as an Elasticsearch plugin, built using LaxarJS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
application
includes/widgets/paperdart
.gitignore
.gitmodules
.jshintrc
CHANGELOG.md
Gruntfile.js
LICENSE-MIT
README.md
bower.json
debug.html
favicon.ico
index.html
init.js
package.json
require_config.js

README.md

Paperdart

A pastebin as an Elasticsearch plugin, built using LaxarJS

Installation

Here are basic installation instructions for Mac OS X. Other platforms should work similarly.

Development Setup

# install elasticsearch, for example using homebrew
brew install elasticsearch

# get the app
git clone --recursive https://github.com/x1B/paperdart.git
cd paperdart
npm install

# change the entry `widgets.paperdart.elasticsearch.host` to 'localhost:9200'
vi application/application.js

# for development only: allow CORS
elasticsearch --config=./application/elasticsearch/development.yml &

# start the development frontend
npm start

Production Setup

To get around CORS restrictions, it is recommended to install Paperdart as an elasticsearch plugin:

# make sure to adjust this to your plugins folder
mkdir -p /usr/local/var/lib/elasticsearch/plugins/paperdart/_site

# assuming that the development setup (above) has been performed successfully
cd path/to/paperdart

npm run-script optimize

cp -r ./* /usr/local/var/lib/elasticsearch/plugins/paperdart/_site