{"id":21462945,"url":"https://github.com/buzzcosm/ztm-course-projects-nodejs-http-server","last_synced_at":"2026-05-22T14:14:52.359Z","repository":{"id":260769775,"uuid":"882297425","full_name":"buzzcosm/ztm-course-projects-nodejs-http-server","owner":"buzzcosm","description":"Simple HTTP Server","archived":false,"fork":false,"pushed_at":"2024-11-02T22:43:28.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T14:38:42.567Z","etag":null,"topics":["cors","http-server","nodejs","rest-api","ztm","ztm-course-exercises"],"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/buzzcosm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-02T12:51:57.000Z","updated_at":"2024-11-02T22:45:37.000Z","dependencies_parsed_at":"2024-11-02T13:28:52.225Z","dependency_job_id":"daf4dcec-8e4f-4952-835a-2e73f3872d03","html_url":"https://github.com/buzzcosm/ztm-course-projects-nodejs-http-server","commit_stats":null,"previous_names":["buzzcosm/ztm-course-projects-nodejs-http-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buzzcosm%2Fztm-course-projects-nodejs-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buzzcosm%2Fztm-course-projects-nodejs-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buzzcosm%2Fztm-course-projects-nodejs-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buzzcosm%2Fztm-course-projects-nodejs-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buzzcosm","download_url":"https://codeload.github.com/buzzcosm/ztm-course-projects-nodejs-http-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976486,"owners_count":20377691,"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":["cors","http-server","nodejs","rest-api","ztm","ztm-course-exercises"],"created_at":"2024-11-23T07:17:59.385Z","updated_at":"2026-05-22T14:14:47.337Z","avatar_url":"https://github.com/buzzcosm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Server\n\n`ZTM` Udemy Course - [Complete NodeJS Developer](https://www.udemy.com/course/complete-nodejs-developer-zero-to-mastery).\n\n## Prerequisite\n\n- `Node.js` is installed ⚡\n- Prefered Code-Editor/IDE is installed (For example: `vscode`) ✍\n- Terminal is ready 😎\n\n## Description\n\nThis project implements a basic HTTP server as a learning exercise, simulating RESTful endpoints for managing a \"friends\" list. It introduces key HTTP methods, with `GET` requests for viewing the list or individual items and `POST` requests to add new entries. Additionally, the server demonstrates sending both JSON and HTML responses to highlight different content types. The project emphasizes core backend concepts, such as route handling, JSON data handling, and HTTP status codes, making it a useful exercise for understanding foundational web server operations in Node.js.\n\n## Process\n\nRun http-server 🏎️💨\n\n```shell\nnode index.js\n```\n\n## Useful references\n\n- [Mozilla - HTTP request methods](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods)\n- [What is an API](https://www.mulesoft.com/api/what-is-an-api)\n- [Mozilla - HTTP response status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status)\n- [Mozilla - Origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin)\n- [Mozilla - Same Origin Policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy)\n- [Mozilla - Using the Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch)\n- [Mozilla - Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)\n- [Wikipedia - Whitelist](https://en.wikipedia.org/wiki/Whitelist)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuzzcosm%2Fztm-course-projects-nodejs-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuzzcosm%2Fztm-course-projects-nodejs-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuzzcosm%2Fztm-course-projects-nodejs-http-server/lists"}