{"id":16979606,"url":"https://github.com/patkub/hackstackapi","last_synced_at":"2025-04-05T17:18:09.954Z","repository":{"id":42870172,"uuid":"254451503","full_name":"patkub/hackstackapi","owner":"patkub","description":"prototype :movie_camera: :dvd: :video_game: :cd:","archived":false,"fork":false,"pushed_at":"2023-01-24T02:00:47.000Z","size":747,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T14:22:33.728Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patkub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2020-04-09T18:42:46.000Z","updated_at":"2020-05-09T19:09:04.000Z","dependencies_parsed_at":"2023-02-13T10:45:26.442Z","dependency_job_id":null,"html_url":"https://github.com/patkub/hackstackapi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patkub%2Fhackstackapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patkub%2Fhackstackapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patkub%2Fhackstackapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patkub%2Fhackstackapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patkub","download_url":"https://codeload.github.com/patkub/hackstackapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369953,"owners_count":20927928,"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-14T01:46:18.658Z","updated_at":"2025-04-05T17:18:09.927Z","avatar_url":"https://github.com/patkub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HackStackAPI\n\n### UI\n\n- [ ] Renting a movie\n- [ ] Reserving a movie\n- [ ] Adding a movie\n- [x] Generating an inventory report\n\nPulls movie data from [OMDb](https://www.omdbapi.com/) and [TMDb](https://www.themoviedb.org/), and game data from [GiantBomb](https://www.giantbomb.com/).\n\n### Setup\n\n```\nyarn install\n```\n\n### Run it!\n\n```\nnode index.js\n```\n\n### Babel Transpile ES6 (ES2015) to ES5\n\nThere are ES6 (ES2015) classes in `app/views/js/components`. In order for them to work on browsers that only support ES5 (ex. IE), they need to be transpiled with babel. This command will generate `app/views/js/components.js` which is included on every page.\n\n```\nyarn transpile\n```\n\nDependencies are defined in `index.js`. For example, bootstrap is under `/vendor/bootstrap/css/bootstrap.min.css`. App css and js are under `static/css/` and `static/js/` respectively.\n\n### Hack Stack, LLC SSL\n\nGenerated SSL certificate using https://github.com/dakshshah96/local-cert-generator\n\nCreate root certificate:\n\n```\nsh createRootCA.sh\n```\n\n```\nCountry Name (2 letter code) [AU]:US\nState or Province Name (full name) [Some-State]:New York\nLocality Name (eg, city) []:Rochester\nOrganization Name (eg, company) [Internet Widgits Pty Ltd]:Hack Stack, LLC\nOrganizational Unit Name (eg, section) []:Hack Stack, LLC\nCommon Name (e.g. server FQDN or YOUR name) []:localhost\nEmail Address []:\n```\n\nCreate domain certificate for localhost:\n\n```\nsh createSelfSigned.sh\n```\n\nEdit `index.js` and set the paths to `server.key` and `server.crt`\n\n```\n.createServer(\n    {\n      key: fs.readFileSync(\"./local-cert-generator/server.key\"),\n      cert: fs.readFileSync(\"./local-cert-generator/server.crt\"),\n      passphrase: \"12345\",\n    },\n    app\n  )\n```\n\n### Import the Certificate into Chrome\n\n1. Go to `chrome://settings/certificates` \u003e Authorities tab \u003e Import `rootCA.pem`.\n2. Trust this certificate for identifying websites.\n3. Restart chrome.\n4. Navigate to `https://localhost:3000/` and you should have a green lock.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatkub%2Fhackstackapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatkub%2Fhackstackapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatkub%2Fhackstackapi/lists"}