{"id":14385100,"url":"https://github.com/apache/cordova-registry-web","last_synced_at":"2025-10-08T00:32:11.326Z","repository":{"id":11384098,"uuid":"13824897","full_name":"apache/cordova-registry-web","owner":"apache","description":"[DEPRECATED] Apache Cordova Registry Web","archived":true,"fork":false,"pushed_at":"2019-04-16T17:19:21.000Z","size":6021,"stargazers_count":9,"open_issues_count":0,"forks_count":23,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-02T05:23:13.818Z","etag":null,"topics":["cordova","cplusplus","csharp","java","javascript","library","mobile","nodejs","objective-c"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apache.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-24T07:00:12.000Z","updated_at":"2023-07-26T21:23:22.000Z","dependencies_parsed_at":"2022-09-12T11:01:23.574Z","dependency_job_id":null,"html_url":"https://github.com/apache/cordova-registry-web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcordova-registry-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcordova-registry-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcordova-registry-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcordova-registry-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/cordova-registry-web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235669382,"owners_count":19026815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cordova","cplusplus","csharp","java","javascript","library","mobile","nodejs","objective-c"],"created_at":"2024-08-28T18:01:57.220Z","updated_at":"2025-10-08T00:32:05.583Z","avatar_url":"https://github.com/apache.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"Cordova Registry Web\n===================\n\n---\n📌 **Deprecation Notice**\n\nThis repository is deprecated and no more work will be done on this by Apache Cordova. You can continue to use this and it should work as-is but any future issues will not be fixed by the Cordova community.\n\nFeel free to fork this repository and improve your fork. Existing forks are listed in [Network](../../network) and [Forks](../../network/members).\n\n- Learn more: https://github.com/apache/cordova/blob/master/deprecated.md#deprecated-other\n---\n\n### :warning: Deprecated! This repo is no longer maintained. Use at your own risk :warning:\n---\n\n\nThis repo contains the assets for [stage.plugins.cordova.io](http://stage.plugins.cordova.io). The site is located in the attachments folder. Below we go over the steps of getting setup, running locally and pushing to the server. The main UI files for the site can be found in the `attachments` directory.\n\nSetup\n=====\n### Clone this repo \u0026 install dependencies\n```bash\ngit clone https://git-wip-us.apache.org/repos/asf/cordova-registry-web.git\n```\nIn your terminal, navigate to the cordova-registry-web directory and `npm install`. This will install the dependencies required to deploy locally.\n\nWe also need to install the `grunt-cli` and `couchapp` globally. Type `npm install grunt-cli -g` and `npm install couchapp -g`.\n\n### Clone Cordova-Registry repo\nIf you are interested in publishing plugins to your local repo, you will need this repo.\n```bash\ngit clone https://git-wip-us.apache.org/repos/asf/cordova-registry.git\n```\nNavigate to the cordova-registry directory and run `npm install`.\n\n### Install \u0026 Start CouchDB\n```bash\nbrew install couchdb\n```\nOnce installed, start CouchDB. You can do this by running `couchdb` in your terminal.\nGo to `http://localhost:5984` in your browser to confirm it is working.\n\n### Create databases in couch\n\n* Registry - holds plugins, views and site ui\n\n```bash\ncurl -X PUT http://localhost:5984/registry\n```\n\n* Downloads - holds download counts\n\n```bash\ncurl -X PUT http://localhost:5984/downloads\n```\n\n### Replicate remote databases\nIf you want to see actual plugins and download counts when you are working locally, you will have to replicate the remote dbs. This could take a while as they are large. An alternative to replicating is to publish plugins locally for testing purposes.\n\n* IrisCouch\n\n```bash\ncurl -X POST -d '{\"source\":\"http://cordova.iriscouch.com/registry\", \"target\":\"http://localhost:5984/registry\"}' http://localhost:5984/_replicate -H \"Content-Type: application/json\"\n```\nand\n```bash\ncurl -X POST -d '{\"source\":\"http://cordova.iriscouch.com/downloads\", \"target\":\"http://localhost:5984/downloads\"}' http://localhost:5984/_replicate -H \"Content-Type: application/json\"\n```\nor\n* Cloudant (Actually this got shut down)\n\n```bash\ncurl -X POST -d '{\"source\":\"http://apachecordova.cloudant.com/registry\", \"target\":\"http://localhost:5984/registry\"}' http://localhost:5984/_replicate -H \"Content-Type: application/json\"\n```\nand\n```bash\ncurl -X POST -d '{\"source\":\"http://apachecordova.cloudant.com/downloads\", \"target\":\"http://localhost:5984/downloads\"}' http://localhost:5984/_replicate -H \"Content-Type: application/json\"\n```\n\n### Potential Errors\nA possible error may be that you don't have a local `_replicate` db. You can create one with:\n```bash\ncurl -X PUT http://localhost:5984/_replicate\n```\n\nYou could also run into the `insecure rewrite rule` error. Fix this by setting `secure_rewrites` to `false` in your `local.ini` under `[httpd]` CouchDB configuriation file. Mine was at `/usr/local/etc/couchdb/local.ini`.\n\nDeploy Locally\n==============\n\n### Cordova-registry\nNavigate to cordova-registry directory in your terminal and run the following command.\n```bash\ncouchapp push app.js http://localhost:5984/registry\n```\n\n### Cordova-registry-web\nNavigate to cordova-registry-web directory in your terminal and run the following command.\n```bash\ngrunt server\n```\n\nYou show now be able to view the site at http://localhost:5000 in your browser.\nThe site is setup to use livereload. As you modify \u0026 save files in the `attachments` directory, the browser will automatically reload the page.\n\nNOTE - The Grunt server \u0026 watch commands are set up to use livereload - this will automatically reload your browser after the server is done reloading - no more needing to click the refresh button on your browser. The livereload script is put in the HEAD of the index.html page - if you wish to not use it, you will need to comment or remove that from the index.html page.\n\n### Updating npm Search Page\nFirst read the README file that is located under npm-search folder. Once you make changes, run `gulp build` while on npm-search directory. In order to package npm search page with cordova registry website, run `grunt npmsearch` while on cordova-registry-web folder. After this please validate your changes with `grunt server`.\n\n### Publish Plugins to your local instance\n```bash\nplugman config set registry http://localhost:5984/registry/_design/app/_rewrite\n```\nNow you can run commands like `plugman publish` and the plugins will be published to your local registry db.\n\n### Potential Errors\nIf you keep seeing `POST /_session 401` when you try to publish a plugin locally, you need to go delete your user info. In terminal type `rm -rf ~/.plugman`. Then go to the plugin you want to add and go `plugman adduser`. Enter in your username, password and email.\n\nDeploy Remotely\n==============\nContact Steve or Anis to get username and passwords for remote couchdb instances. Any Cordova committers will be given the information if requested. Currently [plugins.cordova.io](http://plugins.cordova.io) is hosted on Iris Couch and [stage.plugins.cordova.io](http://stage.plugins.cordova.io) is hosted on Cloudant. The plan is to move over to Cloudant when this site launches. This will require setting up the default plugman registry to Cloudant. This should be doable by changing the DNS for `registry.cordova.io`\n\n### Cordova-registry\nNavigate to cordova-registry directory in your terminal and run the following command.\n\nNote: I don't believe we will be updating cordova-registry often. These commands probably won't be needed much.\n```bash\ncouchapp push app.js http://username:password@apachecordova.cloudant.com/registry\n```\nor\n```bash\ncouchapp push app.js http://username:password@cordova.irishcouch.com/registry\n```\n\n\n### Cordova-registry-web\nNavigate to cordova-registry-web directory in your terminal and run the following command.\n```bash\ngrunt cloudant\n```\nor\n```bash\ngrunt iriscouch\n```\n\nIf you update your local config.json with credentials and don't want to push those changes up to git (so we don't accidentally commit passwords), run `git update-index --assume-unchanged config.json` after you have modified your config.json.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fcordova-registry-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fcordova-registry-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fcordova-registry-web/lists"}