{"id":16906638,"url":"https://github.com/rsms/dropular-2010","last_synced_at":"2025-04-11T15:26:55.725Z","repository":{"id":1643204,"uuid":"2368486","full_name":"rsms/dropular-2010","owner":"rsms","description":"Redacted snapshot of dropular.net, May 2010","archived":false,"fork":false,"pushed_at":"2011-09-12T06:57:19.000Z","size":402,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T12:41:47.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-12T01:09:49.000Z","updated_at":"2016-04-04T12:06:39.000Z","dependencies_parsed_at":"2022-07-25T21:48:29.880Z","dependency_job_id":null,"html_url":"https://github.com/rsms/dropular-2010","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/rsms%2Fdropular-2010","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fdropular-2010/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fdropular-2010/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fdropular-2010/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsms","download_url":"https://codeload.github.com/rsms/dropular-2010/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429959,"owners_count":21101927,"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":[],"created_at":"2024-10-13T18:43:43.049Z","updated_at":"2025-04-11T15:26:55.706Z","avatar_url":"https://github.com/rsms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dropular.net version 2010\n\nNote: This is an archived snapshot of the dropular.net source, May 2010. Some parts has been removed or altered for the sake of security and readability.\n\n## Development\n\n### Starting daily development\n\nTerminal 1:\n\n    ssh -L5984:127.0.0.1:5984 dropular-ec2-1\n\nTerminal 2:\n\n    cd dropular/dropular\n    ./build.sh\n\nTerminal 3:\n\n    cd dropular/dropular\n    ./httpd.js\n\n### Setting up a local installation\n\n**1. Install node**\n\nYou'll need [Node](http://nodejs.org/) v0.1.32 or later.\n\n    $ git clone git://github.com/ry/node.git\n    $ cd node\n    $ ./configure\n    $ make \n    $ sudo make install\n\n**2. Install oui and the dropular site.**\n\n    $ mkdir dropular \u0026\u0026 cd dropular\n    $ git clone git://github.com/rsms/oui.git\n    $ git clone git://github.com/rsms/node-couchdb-min.git\n    $ git clone git@github.com:rsms/dropular.git\n\nYou might need to build the oui library:\n\n    $ cd dropular/oui/client\n    $ ./build.sh -s\n\n**3. Install CouchDB**\n\nFirst, install dependencies.\nOS X:\n\n    $ sudo port install icu erlang spidermonkey curl\n\nDebian:\n\n    $ sudo apt-get install build-essential erlang libicu-dev libmozjs-dev\\\n      libcurl4-openssl-dev\n\nSuck down and build CouchDB:\n\n    $ svn co http://svn.apache.org/repos/asf/couchdb/trunk couchdb\n    $ cd couchdb\n    $ ./bootstrap \u0026\u0026 ./configure\n    $ make \u0026\u0026 sudo make install\n\n\n----\n\n[--deprecated--]\n\nIn production, you should configure for prefix \"\" (that's \"/\"):\n\n    $ ./configure --prefix ''\n\nAnd perform the following after `make install`:\n\n    $ sudo adduser --system --home /var/lib/couchdb --no-create-home\\\n      --shell /bin/bash --group --gecos 'CouchDB Administrator' couchdb\n    $ sudo chown -R couchdb.couchdb /var/{lib,log,run}/couchdb /etc/couchdb\n    $ sudo chmod -R 0770 /var/{lib,log,run}/couchdb /etc/couchdb\n\nUninstall is partially possible by running `make uninstall` and then `sudo find /usr/local -iname '*couch*' | sudo xargs rm -rf`.\n\nCreate a dropular user and group:\n\n    $ sudo adduser --system --home /var/dropular --shell /bin/bash --group\\\n      --gecos 'Dropular system user' dropular\n\nGenerate an SSH key for the dropular user:\n\n    $ sudo su dropular\n    $ cd\n    $ ssh-keygen -t rsa\n    $ cat .ssh/id_rsa.pub\n\nCopy the output from the last command and add a new \"deploy key\" in https://github.com/rsms/dropular/edit\n\nCheck out the dropular repo, logged in as `dropular`:\n\n    $ git clone git@github.com:rsms/dropular.git /var/dropular/dropular\n\nCreate a symlink in `/var/www`:\n\n    $ ln -s /var/dropular/dropular /var/www/dropular.net/www\n\n#### Deploying a new version of dropular-httpd\n\nFirst thing, start a server instance in debug mode on an unused port:\n\n    $ sudo -u dropular /var/dropular/dropular/httpd.js -d -p 9000\n\nThen, test with a client directly:\n\n    $ open 'http://dropular.net:9000/'\n\nThen test with a client partially:\n\n    $ open 'http://dropular.net/#OUI_DEBUG_BACKEND=dropular.net:9000'\n\nIf everything look jolly good, restart all live server instances:\n\n    $ sudo invoke-rc.d dropular-httpd restart\n\nAaand test the live client:\n\n    $ open 'http://dropular.net/'\n\n\n### Client development\n\nWhen developing the client, you need to build it. The `build.sh` file does this for you automatically. In a terminal:\n\n    $ ./build.sh -fO 0\n\n\u003e `-fO 0` -- The `f` flag causes the first build to be \"complete\" (forced). The `O` flag sets the optimization level to zero, making debugging possible.\n\nKeep this running in a terminal -- when a file has been changed, the client will automatically be rebuilt.\n\n\n### Server development\n\nWhen developing the server, you need to (re)start `httpd.js` when something changes in the server code.\n\n    $ ./httpd.js -d\n\n\u003e `-d` -- The `d` flag causes debugging to be enabled.\n\n\n## MIT license\n\nCopyright (c) 2009-2010 Rasmus Andersson \u003chttp://rsms.me/\u003e, Andreas Pihlström \u003chttp://suprb.com/\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fdropular-2010","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsms%2Fdropular-2010","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fdropular-2010/lists"}