ElasticSearch based npmjs database indexer
- node.js
- elasticsearch
- nomjs couchdb replica
git clone https://github.com/comlanio/npm_indexer.git
cd npm_indexer
npm install
./indexer.js --init [--es elasticsearch_address:port] [--couchdb couchdb_address:port/database] [--freq refresh_frequency_secs]
./indexer.js [--es elasticsearch_address:port] [--couchdb couchdb_address:port/database] [--freq refresh_frequency_secs]
./server.js [-p listening_port]
If not defined on cli, the following value apply :
- elasticsearch_address:port : localhost:9200
- couchdb_address:port/database : skimdb.npmjs.com:443/registry (public npmjs replica)
- refresh_frequency_secs : 5
- listening_port : 3000
curl server_ip:port/search?q=keyword