Skip to content

Instantly share code, notes, and snippets.

@villadora
Created October 18, 2013 06:37
Show Gist options
  • Save villadora/7037339 to your computer and use it in GitHub Desktop.
Save villadora/7037339 to your computer and use it in GitHub Desktop.
  1. write config file make a config.admin.js, config couchAuth for couch login, and registryCouch to couchdb; update =npm= change the registry address;

  2. start redis install redis, run:

    redis-server dev/redis/redis.conf

  3. start elasticsearch install elasticsearch, run:

    nohup elasticsearch -Des.config=dev/elasticsearch/elasticsearch.yml -f

  4. run npm2es.js after elasticsearch is already started. this will build elasticsearch index:

    nohup ./node_modules/npm2es/bin/npm2es.js --couch='couch registry' --es=http://127.0.0.1:9200/npm

  5. run server

    nohup npm start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment