{"id":15825452,"url":"https://github.com/patrickjs/made-at-hackreactor","last_synced_at":"2025-04-01T09:39:02.240Z","repository":{"id":66200298,"uuid":"10769013","full_name":"PatrickJS/made-at-hackreactor","owner":"PatrickJS","description":"Made at HackReactor built in Rails 3.2.13, Backbone.js 1.0.0, Redis 2.6.13, Socket.io 0.9, Node.js 0.10.12","archived":false,"fork":false,"pushed_at":"2013-08-20T22:13:34.000Z","size":1348,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-05T09:20:50.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://HackReactor.herokuapp.com","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/PatrickJS.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":"2013-06-18T17:20:19.000Z","updated_at":"2013-09-30T20:35:00.000Z","dependencies_parsed_at":"2023-02-20T00:15:30.528Z","dependency_job_id":null,"html_url":"https://github.com/PatrickJS/made-at-hackreactor","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/PatrickJS%2Fmade-at-hackreactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fmade-at-hackreactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fmade-at-hackreactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fmade-at-hackreactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickJS","download_url":"https://codeload.github.com/PatrickJS/made-at-hackreactor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620125,"owners_count":20806716,"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-05T09:20:34.882Z","updated_at":"2025-04-01T09:39:02.218Z","avatar_url":"https://github.com/PatrickJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Made at Hack Reactor\n\n\u003cimg src=\"https://dl.dropboxusercontent.com/u/7020515/MadeAtHackReactor/reactiveRails.png\"\u003e\n\n##### Dependencies\n- Foreman  \n$ gem install foreman\n- Redis  \n$ brew install redis  \n- MRI Ruby 2.0.0-p195  \n$ \\curl -L https://get.rvm.io | bash -s stable --ruby  \n- Node  \n$ brew install node  \n\n\n### Initialize\n \n$ bundle install  \n$ npm install node/\n$ rake db:migrate  \n$ foreman server -f Procfile.dev  \n$ localhost:5100  \n\n### ScriptTag\nlocalhost:5100/script  \n```javascript    \nvar builtAtHackReactor = function(options) {\n      options = options || {};\n  var windowDomain = window.location.host.split('.'),\n      titleDomain = document.querySelector('title').text,\n      wwwDomain = windowDomain[0] === 'www' ? windowDomain[1] : windowDomain[0],\n      name = titleDomain.length \u003c wwwDomain.length ? titleDomain : wwwDomain,\n      meta = document.querySelectorAll('meta'),\n      url = options.overWriteUrl || \"https://hackreactor.herokuapp.com/banner/\";\n  if (!options.description) {\n    for (var i = 0; i \u003c meta.length; i++) {\n      if (meta[i].getAttribute('name') === 'description' || meta[i].getAttribute('property') === \"og:description\") {\n        options.description =  meta[i].getAttribute('content');\n        break;\n      }\n    }\n  }\n  options.banner = options.banner ? true : false;\n  options.url = options.fullUrl ? location.href : options.url || window.location.origin;\n  options.name = options.name || name;\n  options.github = options.twitter || name;\n  options.twitter = options.twitter || name;\n  options.facebook = options.twitter || name;\n  options.position = options.position || [\"top\", \"right\"];\n\n  var img = new Image();\n  img.style.position = 'absolute';\n  img.style[options.position[1]] = 0;\n  img.style[options.position[0]] = 0;\n  img.style['z-index'] = 99999;\n  var query = '?';\n  for (var key in options) {\n    query +=  '\u0026'+ key + '=' + options[key];\n  }\n  img.src = url+options.name+\".png\"+query+'';\n  var linkwithimage = document.createElement('a');\n  linkwithimage.setAttribute('href', 'https://hackreactor.herokuapp.com/');\n  linkwithimage.appendChild(img);\n  document.getElementsByTagName('body')[0].appendChild(linkwithimage);\n};\n\nbuiltAtHackReactor({\n  overWriteUrl: 'http://localhost:5100/banner/',\n  fullUrl:true,\n  banner:false\n});\n```\n\nwebsite RESTful API  \n/api/websites/:id  \n$ curl -H 'Accept:application/vnd.hackreactor.v1' http://localhost:3000/api/websites\n\n##### TODO:  \n- fix social button loading  \n- fix Font loading  \n- security (whitelist)  \n- posts  \n- better banner  \n- allow for users to login with github for comments\n\nCopyright 2013, [Hack Reactor, LLC](http://hackreactor.com). All rights reserved.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fmade-at-hackreactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickjs%2Fmade-at-hackreactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fmade-at-hackreactor/lists"}