{"id":17597923,"url":"https://github.com/cvan/tweet2db","last_synced_at":"2025-03-29T20:27:51.310Z","repository":{"id":28367074,"uuid":"31880993","full_name":"cvan/tweet2db","owner":"cvan","description":"a bot that accepts data from a tweet and saves it in a key-value store","archived":false,"fork":false,"pushed_at":"2015-03-16T20:52:55.000Z","size":168,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T09:50:19.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cvan.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":"2015-03-09T05:30:32.000Z","updated_at":"2015-03-16T20:52:56.000Z","dependencies_parsed_at":"2022-09-02T19:22:17.530Z","dependency_job_id":null,"html_url":"https://github.com/cvan/tweet2db","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/cvan%2Ftweet2db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ftweet2db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ftweet2db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ftweet2db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvan","download_url":"https://codeload.github.com/cvan/tweet2db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246240567,"owners_count":20745894,"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-22T09:44:03.402Z","updated_at":"2025-03-29T20:27:51.293Z","avatar_url":"https://github.com/cvan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tweet2db\n\nA bot that accepts data from a tweet and saves it in a key-value store.\n\n\n## Sample Usage\n\nTweet at [@tweet2db](https://twitter.com/tweet2db), like so:\n\n    @tweet2db yolo='themotto'\n\nMake sure the database is refreshed. To force a refresh, you can hit this URL:\n\n[__https://tweet2db.herokuapp.com/refresh__](http://tweet2db.herokuapp.com/refresh)\n\nThen get the data by hitting the URL directly:\n\n[__https://tweet2db.herokuapp.com/data/`\u003cyour_twitter_username\u003e`/yolo__](http://tweet2db.herokuapp.com/data/\u003cyour_twitter_username\u003e/yolo)\n\nOr via XHR from a web page:\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('get', 'https://tweet2db.herokuapp.com/data/\u003cyour_twitter_username\u003e/yolo', true);\nxhr.onload = function () {\n  console.log(xhr.responseText);\n};\nxhr.onerror = function (e) {\n  console.error('XHR error: ' + e.error);\n};\nxhr.send();\n```\n\n\n## Installation\n\n1. Install the Node dependencies:\n\n        npm install\n\n2. Generate a local settings file:\n\n        cp settings_local.js{.dist,}\n\n3. Install Redis:\n\n        brew install redis\n\n4. Set up Redis:\n\n        brew info redis\n\n\n## Development\n\nServe the site from the simple server:\n\n    npm run dev\n\nThen launch the site from your favourite browser:\n\n[__http://localhost:3000/__](http://localhost:3000/)\n\nIf you wish to serve the site from a different port:\n\n    TWEET2DB_PORT=8000 npm run dev\n\n\n## Deployment\n\nIn production, the server is run like so:\n\n    NODE_ENVIRONMENT=production node index.js\n\nAlternatively:\n\n    npm run prod\n\nTo run the server à la Heroku:\n\n    foreman start web\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Ftweet2db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvan%2Ftweet2db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Ftweet2db/lists"}