{"id":31814015,"url":"https://github.com/levicook/hello-website-api","last_synced_at":"2025-10-11T08:23:43.799Z","repository":{"id":66311616,"uuid":"47149884","full_name":"levicook/hello-website-api","owner":"levicook","description":null,"archived":false,"fork":false,"pushed_at":"2015-11-30T23:32:20.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-15T09:13:17.154Z","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/levicook.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":null,"support":null}},"created_at":"2015-11-30T22:25:52.000Z","updated_at":"2024-04-15T09:13:17.156Z","dependencies_parsed_at":"2023-03-10T17:41:36.776Z","dependency_job_id":null,"html_url":"https://github.com/levicook/hello-website-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levicook/hello-website-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levicook%2Fhello-website-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levicook%2Fhello-website-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levicook%2Fhello-website-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levicook%2Fhello-website-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levicook","download_url":"https://codeload.github.com/levicook/hello-website-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levicook%2Fhello-website-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006640,"owners_count":26084148,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-11T08:23:40.050Z","updated_at":"2025-10-11T08:23:43.792Z","avatar_url":"https://github.com/levicook.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello-website-api\n\n### Mon Nov 30 16:06:05 MST 2015 - Define create endpoints and test'em\n\n- [x] create beta signup route and callback\n- [x] create friend referral route and callback\n- [x] create sales demo route and callback\n\n- [x] test'em with `curl`\n\n```\n########################################################\n####### interact with create beta signup\n$ curl --verbose -XPOST http://localhost:5000/api/beta-signups\n*   Trying ::1...\n* Connected to localhost (::1) port 5000 (#0)\n\u003e POST /api/beta-signups HTTP/1.1\n\u003e Host: localhost:5000\n\u003e User-Agent: curl/7.43.0\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 501 Not Implemented\n\u003c X-Powered-By: Express\n\u003c Content-Type: text/html; charset=utf-8\n\u003c Content-Length: 15\n\u003c ETag: W/\"f-JXt8VLVJ68hSR+zkU49oHw\"\n\u003c Date: Mon, 30 Nov 2015 23:05:09 GMT\n\u003c Connection: keep-alive\n\u003c\n* Connection #0 to host localhost left intact\nNot Implemented\n\n\n########################################################\n####### interact with create friend referral\n$ curl --verbose -XPOST http://localhost:5000/api/friend-referrals\n*   Trying ::1...\n* Connected to localhost (::1) port 5000 (#0)\n\u003e POST /api/friend-referrals HTTP/1.1\n\u003e Host: localhost:5000\n\u003e User-Agent: curl/7.43.0\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 501 Not Implemented\n\u003c X-Powered-By: Express\n\u003c Content-Type: text/html; charset=utf-8\n\u003c Content-Length: 15\n\u003c ETag: W/\"f-JXt8VLVJ68hSR+zkU49oHw\"\n\u003c Date: Mon, 30 Nov 2015 23:05:22 GMT\n\u003c Connection: keep-alive\n\u003c\n* Connection #0 to host localhost left intact\nNot Implemented\n\n\n########################################################\n####### interact with create sales demo request\n$ curl --verbose -XPOST http://localhost:5000/api/sales-demo-requests\n*   Trying ::1...\n* Connected to localhost (::1) port 5000 (#0)\n\u003e POST /api/sales-demo-requests HTTP/1.1\n\u003e Host: localhost:5000\n\u003e User-Agent: curl/7.43.0\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 501 Not Implemented\n\u003c X-Powered-By: Express\n\u003c Content-Type: text/html; charset=utf-8\n\u003c Content-Length: 15\n\u003c ETag: W/\"f-JXt8VLVJ68hSR+zkU49oHw\"\n\u003c Date: Mon, 30 Nov 2015 23:05:33 GMT\n\u003c Connection: keep-alive\n\u003c\n* Connection #0 to host localhost left intact\nNot Implemented\n\n\n########################################################\n####### interact with stuff that doesn't exist:\n\n####### a resource we don't support\n$ curl --verbose -XPOST http://localhost:5000/api/some-other-things\n*   Trying ::1...\n* Connected to localhost (::1) port 5000 (#0)\n\u003e POST /api/some-other-things HTTP/1.1\n\u003e Host: localhost:5000\n\u003e User-Agent: curl/7.43.0\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 404 Not Found\n\u003c X-Powered-By: Express\n\u003c X-Content-Type-Options: nosniff\n\u003c Content-Type: text/html; charset=utf-8\n\u003c Content-Length: 35\n\u003c Date: Mon, 30 Nov 2015 23:05:43 GMT\n\u003c Connection: keep-alive\n\u003c\nCannot POST /api/some-other-things\n* Connection #0 to host localhost left intact\n\n\n####### a method we don't support\n$ curl --verbose -XGET http://localhost:5000/api/sales-demo-requests\n*   Trying ::1...\n* Connected to localhost (::1) port 5000 (#0)\n\u003e GET /api/sales-demo-requests HTTP/1.1\n\u003e Host: localhost:5000\n\u003e User-Agent: curl/7.43.0\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 404 Not Found\n\u003c X-Powered-By: Express\n\u003c X-Content-Type-Options: nosniff\n\u003c Content-Type: text/html; charset=utf-8\n\u003c Content-Length: 36\n\u003c Date: Mon, 30 Nov 2015 23:09:43 GMT\n\u003c Connection: keep-alive\n\u003c\nCannot GET /api/sales-demo-requests\n* Connection #0 to host localhost left intact\n\n```\n\n\n### Mon Nov 30 15:50:15 MST 2015 - Get things running on heroku...\n\n- [x] `git push heroku`\n- [x] `heroku open`\n- [x] bugfix: use PORT environment variable heroku passes to us or we won't be able to start\n\n### Mon Nov 30 15:32:11 MST 2015 - Setup node + heroku plumbing\n\nSome useful ideas here:\nhttps://devcenter.heroku.com/articles/node-best-practices\n\nInitial content for server.js came from here:\nhttp://expressjs.com/starter/hello-world.html\n\n- [x] create Procfile\n  - [x] Define web process - `web: node server.js`\n- [x] generate package.json with `npm init --yes`\n- [x] install express and track the dependency\n  - [x] `npm install express --save` (output below)\n- [x] create project on heroku\n  - [x] `heroku create` (output below)\n\n```\n$ npm init --yes\nWrote to /Users/levi/hello-website-api/package.json:\n\n{\n  \"name\": \"hello-website-api\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" \u0026\u0026 exit 1\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/levicook/hello-website-api.git\"\n  },\n  \"keywords\": [],\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"bugs\": {\n    \"url\": \"https://github.com/levicook/hello-website-api/issues\"\n  },\n  \"homepage\": \"https://github.com/levicook/hello-website-api#readme\"\n}\n```\n\n```\n$ npm install express --save\nnpm WARN package.json hello-website-api@1.0.0 No description\nexpress@4.13.3 node_modules/express\n├── utils-merge@1.0.0\n├── content-type@1.0.1\n├── methods@1.1.1\n├── range-parser@1.0.3\n├── etag@1.7.0\n├── path-to-regexp@0.1.7\n├── vary@1.0.1\n├── serve-static@1.10.0\n├── escape-html@1.0.2\n├── merge-descriptors@1.0.0\n├── cookie@0.1.3\n├── array-flatten@1.1.1\n├── parseurl@1.3.0\n├── cookie-signature@1.0.6\n├── fresh@0.3.0\n├── content-disposition@0.5.0\n├── depd@1.0.1\n├── qs@4.0.0\n├── finalhandler@0.4.0 (unpipe@1.0.0)\n├── on-finished@2.3.0 (ee-first@1.1.1)\n├── debug@2.2.0 (ms@0.7.1)\n├── proxy-addr@1.0.8 (forwarded@0.1.0, ipaddr.js@1.0.1)\n├── type-is@1.6.9 (media-typer@0.3.0, mime-types@2.1.7)\n├── accepts@1.2.13 (negotiator@0.5.3, mime-types@2.1.7)\n└── send@0.13.0 (destroy@1.0.3, statuses@1.2.1, ms@0.7.1, mime@1.3.4, http-errors@1.3.1)\n```\n\n```\n$ heroku create\nCreating arcane-fortress-3524... done, stack is cedar-14\nhttps://arcane-fortress-3524.herokuapp.com/ | https://git.heroku.com/arcane-fortress-3524.git\nGit remote heroku added\n```\n\n### Mon Nov 30 15:29:01 MST 2015 - Setup source code repository\n\n- [x] create project on github\n  - [x] github.com/{username}/hello-website-api\n  - [x] cloned the project `git clone github.com/{username}/hello-website-api ~/hello-website-api`\n  - [x] seleced .gitignore for node\n  - [x] seleced MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevicook%2Fhello-website-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevicook%2Fhello-website-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevicook%2Fhello-website-api/lists"}