{"id":21065824,"url":"https://github.com/washira/node-complete","last_synced_at":"2025-03-14T01:47:36.613Z","repository":{"id":223141164,"uuid":"759404918","full_name":"Washira/node-complete","owner":"Washira","description":"Complete Node.js","archived":false,"fork":false,"pushed_at":"2024-02-22T16:25:57.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T21:12:50.462Z","etag":null,"topics":["http","javascript","nodejs"],"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/Washira.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-02-18T14:04:24.000Z","updated_at":"2024-02-18T14:45:18.000Z","dependencies_parsed_at":"2024-02-21T02:56:38.715Z","dependency_job_id":"8df6658f-e44f-4b50-b2c8-4a39f26b440e","html_url":"https://github.com/Washira/node-complete","commit_stats":null,"previous_names":["washira/node-complete"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Washira%2Fnode-complete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Washira%2Fnode-complete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Washira%2Fnode-complete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Washira%2Fnode-complete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Washira","download_url":"https://codeload.github.com/Washira/node-complete/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243510010,"owners_count":20302294,"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":["http","javascript","nodejs"],"created_at":"2024-11-19T17:56:33.281Z","updated_at":"2025-03-14T01:47:36.590Z","avatar_url":"https://github.com/Washira.png","language":"JavaScript","readme":"# Node.js Complete Guide's Contents\n\nเลือก Branch ตาม content ที่ต้องการ\n\n- [Node.js Complete Guide's Contents](#nodejs-complete-guides-contents)\n  - [Basics](#basics)\n    - [1. Routing Requests](#1-routing-requests)\n    - [2. Parsing Request Bodies](#2-parsing-request-bodies)\n    - [3. Blocking and Non-blocking Code](#3-blocking-and-non-blocking-code)\n    - [4. Using the Node Modules System](#4-using-the-node-modules-system)\n  - [Development Workflow and Debugging](#development-workflow-and-debugging)\n    - [5. Understanding NPM Scripts](#5-understanding-npm-scripts)\n\n## Basics\n\nNode.js runtime and global modules\n\n### 1. Routing Requests\n\nจัดการ route ด้วย `req.url` และจบด้วย `res.end()`\n\n### 2. Parsing Request Bodies\n\nจะเป็นอย่างไรเมื่อ ส่ง request ถี่ๆ แก้ได้ด้วย `Buffer`\n\n### 3. Blocking and Non-blocking Code\n\nปรับการทำงานของ Blocking IO ด้วยการใช้ `writeFile()` ทดแทน `writeFileSync()`\n\n### 4. Using the Node Modules System\n\nการทำงานของ `module.exports` \n\n## Development Workflow and Debugging\n\nเมื่อการ start server ด้วยการรัน `node app.js` ไม่ค่อย work อาจจะต้องพึ่งพาวิธีการอื่น\n\n### 5. Understanding NPM Scripts\n\nรู้จักตัวจัดการ node packages ที่เรียกว่า NPM\nเริ่มสร้าง ด้วยการรัน `npm init`\n\nสร้าง script name ด้วย `start` สามารถรันด้วย `npm start` ได้ (special script name)\nส่วนชื่ออื่นต้องรันด้วย `npm run \u003cscript_name\u003e`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwashira%2Fnode-complete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwashira%2Fnode-complete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwashira%2Fnode-complete/lists"}