{"id":16488811,"url":"https://github.com/austindd/nodejs","last_synced_at":"2025-07-04T00:06:03.238Z","repository":{"id":128179644,"uuid":"162180575","full_name":"austindd/NodeJS","owner":"austindd","description":"Various projects using Node.JS","archived":false,"fork":false,"pushed_at":"2018-12-19T19:10:30.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-07T06:34:15.662Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/austindd.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":"2018-12-17T19:35:51.000Z","updated_at":"2018-12-19T19:10:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"b099c853-9ade-499d-9744-c54f03e946da","html_url":"https://github.com/austindd/NodeJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/austindd/NodeJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2FNodeJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2FNodeJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2FNodeJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2FNodeJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austindd","download_url":"https://codeload.github.com/austindd/NodeJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2FNodeJS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421918,"owners_count":23464048,"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-11T13:39:59.648Z","updated_at":"2025-07-04T00:06:03.196Z","avatar_url":"https://github.com/austindd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Learning Node.JS\n\n## OBJECTIVES\n\n### PART 1\n\n1. Create a NodeJS project using `npm init`.\n2. Create a folder in your project called `server`.\n3. Create a JavaScript file in the `server` folder named `server.js`.\n4. In `server.js`\n    * Import (require) `path` and `fs`.\n    * Create an array consisting of at least 5 chirp objects.\n    * Write the array to a file in the root of the project called `chirps.json`.\n    * Add code to `server.js` that reads the file and outputs the chirps to the console\n\n### PART 2\n\n1. Install `request-promise` from npm and save it to your package.json file.\n2. Create a JavaScript file in the root of your project called `reddit.js`.\n3. Use request-promise to retreive articles from https://reddit.com/r/popular.json.\n4. Extract from each article title, url, and author\n5. Push each extracted article to an array.\n6. Write the array to a file in the root of your project called `popular-articles.json`.\n\n### ADVANCED\n\n1. Create a JavaScript file named `popular-downloader.js`.\n2. Create a directory in the root of your project named `downloads`.\n3. Using `request-promise`, pull articles from https://reddit.com/r/popular.json.\n4. If the article is a `.jpg`, `.gif`, or a `.png` [(hint)](https://nodejs.org/dist/latest-v10.x/docs/api/path.html#path_path_extname_path]):\n5. Use `request-promise` to download the media.\n6. Write each download to a file (named the `id` of the article) in the `downloads` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustindd%2Fnodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustindd%2Fnodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustindd%2Fnodejs/lists"}