{"id":21992484,"url":"https://github.com/walidbosso/nodejs_playground","last_synced_at":"2026-04-30T08:32:23.490Z","repository":{"id":216542435,"uuid":"696676618","full_name":"walidbosso/Nodejs_playground","owner":"walidbosso","description":"Creating a server, and then listening to a request and show a response based on it, if /read then I read the content of a file and show it on the browser, I can also write and append content to the file.","archived":false,"fork":false,"pushed_at":"2024-01-10T18:38:12.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T03:32:35.893Z","etag":null,"topics":["file-manipulation","nodejs","nodejs-api","nodejs-server","requests"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/walidbosso.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-26T08:16:55.000Z","updated_at":"2024-10-20T21:38:48.000Z","dependencies_parsed_at":"2024-01-10T20:18:42.885Z","dependency_job_id":"f0c4709e-b107-45c9-ab67-a617037411d9","html_url":"https://github.com/walidbosso/Nodejs_playground","commit_stats":null,"previous_names":["walidbosso/nodejs_playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/walidbosso/Nodejs_playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walidbosso%2FNodejs_playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walidbosso%2FNodejs_playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walidbosso%2FNodejs_playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walidbosso%2FNodejs_playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walidbosso","download_url":"https://codeload.github.com/walidbosso/Nodejs_playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walidbosso%2FNodejs_playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278542680,"owners_count":26004060,"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-05T02:00:06.059Z","response_time":54,"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":["file-manipulation","nodejs","nodejs-api","nodejs-server","requests"],"created_at":"2024-11-29T20:13:53.875Z","updated_at":"2025-10-06T00:43:42.600Z","avatar_url":"https://github.com/walidbosso.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/walidbosso","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":[],"sub_categories":[],"readme":"![Nodejs_playground](https://socialify.git.ci/walidbosso/Nodejs_playground/image?description=1\u0026font=Source%20Code%20Pro\u0026forks=1\u0026issues=1\u0026language=1\u0026name=1\u0026owner=1\u0026pattern=Formal%20Invitation\u0026pulls=1\u0026stargazers=1\u0026theme=Auto)\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/walidbosso/Nodejs_playground\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/khoa083/khoa/main/Khoa_ne/img/Rainbow.gif\" width=\"60%\"/\u003e \u003c/a\u003e\n\u003c/p\u003e\n\u003cdiv align=\"center\"\u003e\n  \n  [![GitHub WidgetBox](https://github-widgetbox.vercel.app/api/profile?username=walidbosso\u0026data=followers,repositories,stars,commits\u0026theme=nautilus)](https://github.com/walidbosso/Nodejs_playground)\n\n  \u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/walidbosso/Nodejs_playground\"\u003e\n\u003cimg src=\"https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Fwalidbosso%2FNodejs_playground\u0026label=Project%20views\u0026countColor=%23263759\u0026style=flat-square\u0026labelStyle=none\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ca href=\"https://github.com/walidbosso/Nodejs_playground\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/khoa083/khoa/main/Khoa_ne/img/Rainbow.gif\" width=\"60%\"/\u003e\n  \u003ca/\u003e\n\u003c/a\u003e\n\n\n\u003cbr/\u003e\n\n# Node.js Playground\n\u003c/div\u003e\n\n\n\n\nWelcome to the Node.js Playground! This project demonstrates the creation of a simple Node.js server that listens for requests and responds accordingly. The server can read content from a file, write and append content to it, providing a basic introduction to file manipulation with Node.js.\n\n## Features\n\n- **Node.js Server:** Simple server setup using Node.js.\n- **Read File Content:** Handles requests to `/read` to read the content of a file (`data.txt`) and displays it in the browser.\n- **Write and Append Content:** Handles requests to write and append content to a file (`writedata.txt`).\n\n## Topics Covered\n\n- Node.js\n- HTTP Requests\n- File Manipulation\n\n## Files and Folders\n\n- **app.js:** Contains the main logic for handling server requests.\n- **data.txt:** Sample file for reading content.\n- **writedata.txt:** File for writing and appending content.\n- **index.js:** Entry point for the Node.js application.\n- **package.json:** Project configuration file.\n- **package-lock.json:** Lock file for Node.js dependencies.\n\n## How to Use\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/walidbosso/Nodejs_playground.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd Nodejs_playground\n   ```\n\n3. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n4. Run the Node.js server:\n\n   ```bash\n   node index.js\n   ```\n\n5. Open your browser and navigate to `http://localhost:3000/read` to read the content of `data.txt`.\n\n6. To write and append content, make a POST request to `http://localhost:3000/write` with the desired content in the request body.\n\n## License\n\nThis project is licensed under the [Your License Name] License - see the [LICENSE](LICENSE) file for details.\n\n\n\n## Contributing\n\nIf you'd like to contribute to the project, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/your-feature`).\n3. Commit your changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature/your-feature`).\n5. Open a pull request.\n\n## Issues\n\nIf you encounter any issues or have suggestions, please open an issue on the [Issues](https://github.com/walidbosso/Nodejs_playground/issues) page.\n\nThank you for exploring the Node.js Playground! 🚀\n\n\u003cdiv align=\"center\"\u003e\n  \n----------------------\n\u003e \u003e  \u003cbr/\u003e \u0026copy; *by Walid BOUSSOU*   🇲🇦 😄 \u003cbr/\u003e  \n----------------------\n\n\u003cdetails\u003e\n\n\u003csummary\u003e👏 Thanks for the support \u003c/summary\u003e\n\n## Stargazers\n\n\n\u003cdiv align=\"center\"\u003e\n\n[![Stargazers repo roster for @walidbosso/Nodejs_playground](http://reporoster.com/stars/dark/walidbosso/Nodejs_playground)](https://github.com/walidbosso/Nodejs_playground/stargazers)\n\n\n\n\u003c/div\u003e\n\n## Forkers\n\n\u003cdiv align=\"center\" \u003e\n\n[![Forkers repo roster for @walidbosso/Nodejs_playground](http://reporoster.com/forks/dark/walidbosso/Nodejs_playground)](https://github.com/walidbosso/Nodejs_playground/network/members)\n\n\u003c/div\u003e\n\n## Contributors\n\n\u003ca href = \"https://github.com/walidbosso\"\u003e\n  \u003cimg src = \"https://contrib.rocks/image?repo=walidbosso/Nodejs_playground\"/\u003e\n\u003c/a\u003e\n\n\n\u003cbr/\u003e\u003c/details\u003e\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\n![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/walidbosso/Nodejs_playground?style=social)\n\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n![GitHub License](https://img.shields.io/github/license/walidbosso/Nodejs_playground?style=social)\n\n \u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.buymeacoffee.com/walidbosso\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee\u0026emoji=☕\u0026slug=walidbosso\u0026button_colour=5F7FFF\u0026font_colour=ffffff\u0026font_family=Poppins\u0026outline_colour=ffffff\u0026coffee_colour=FFDF00\" title=\"☕ This will motivate me to continue on creating more open source codes \"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\u003c/div\u003e\n\n\u003ca href = \"https://github.com/walidbosso\"\u003e\n  \u003cimg src = \"https://github.com/walidbosso/Python-GUI/blob/main/border.gif\" width=\"100%\"/\u003e\n\u003c/a\u003e\n\n\u003ca href = \"https://github.com/walidbosso\"\u003e\n  \u003cimg src = \"https://github.com/walidbosso/Python-GUI/blob/main/ciber-coding.gif\" width=\"100%\"/\u003e\n\u003c/a\u003e\n\n\u003ca href = \"https://github.com/walidbosso\"\u003e\n  \u003cimg src = \"https://github.com/walidbosso/Python-GUI/blob/main/border.gif\" width=\"100%\"/\u003e\n\u003c/a\u003e\n\n𝚂𝚑𝚘𝚠 𝚜𝚘𝚖𝚎 💙 𝚋𝚢 𝚜𝚝𝚊𝚛𝚛𝚒𝚗𝚐 ⭐ 𝚝𝚑𝚎 𝚛𝚎𝚙𝚘𝚜𝚒𝚝𝚘𝚛𝚢!\n\n\u003cbr/\u003e\n\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#\"\u003e\u003cimg src=\"https://img.shields.io/badge/Back%20to%20top--lightgrey?style=social\" alt=\"Back to top\" height=\"20\"/\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalidbosso%2Fnodejs_playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalidbosso%2Fnodejs_playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalidbosso%2Fnodejs_playground/lists"}