{"id":28700920,"url":"https://github.com/theamnabb/mern-stack","last_synced_at":"2026-04-06T08:01:15.291Z","repository":{"id":291898122,"uuid":"919604031","full_name":"theamnabb/MERN-Stack","owner":"theamnabb","description":"Learn MERN ","archived":false,"fork":false,"pushed_at":"2025-05-29T19:14:26.000Z","size":4231,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T11:45:05.942Z","etag":null,"topics":["expressjs","mongodb","nodejs","reactjs"],"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/theamnabb.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,"zenodo":null}},"created_at":"2025-01-20T17:40:35.000Z","updated_at":"2025-05-29T19:14:29.000Z","dependencies_parsed_at":"2025-06-01T11:25:47.967Z","dependency_job_id":null,"html_url":"https://github.com/theamnabb/MERN-Stack","commit_stats":null,"previous_names":["aamna-ansari/mern-stack","theamnabb/mern-stack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theamnabb/MERN-Stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theamnabb%2FMERN-Stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theamnabb%2FMERN-Stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theamnabb%2FMERN-Stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theamnabb%2FMERN-Stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theamnabb","download_url":"https://codeload.github.com/theamnabb/MERN-Stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theamnabb%2FMERN-Stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["expressjs","mongodb","nodejs","reactjs"],"created_at":"2025-06-14T11:41:37.954Z","updated_at":"2026-04-06T08:01:15.265Z","avatar_url":"https://github.com/theamnabb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node JS\n\n## What is Node JS:\n\nNode JS is runtime Environment for JavaScript.\n\nNode.js is an open-source, cross-platform JavaScript runtime environment that executes JavaScript code outside a web browser. Built on Chrome's V8 engine, it enables server-side development with JavaScript.\n\n## Installation:\n\n- Go to the Node.js\n- Download Node.js from the [official website](https://nodejs.org/).\n  - Download the Windows installer (LTS version recommended).\n- Run the installer and follow the on-screen instructions.\n- After installation, open the Terminal and verify the installation by running\n\n```bash\nnode -v\nnpm -v \n```\n📌 NPM mean Node package Manager \n\n## Helo World\n- window\n- npm package\n- create script | start \n\n## Modules\n- require |  import \n- exports \n- module.exports\n\n## File System\n- Create File (writeFileSyn | writeFile)\n- Read File  (readFileSyn | readFile)\n- Save previous data with out over write (append)\n- copy File\n- Delete File (unlinksync)\n- Create Folder\n\n## Architecture | How NodeJS Works?\n![](./images/Node.js-Architecture-Chart.png)\n![](./images/nodejs.webp)\n- Default Thread pool size is 4\n  - Max? = 8core cp = 8\n\n```bash\nconst os = require('os');\nconsole.log(os.cpus().length);\n```\n## Building HTTP Server\n\n \u003c!-- in server Folder perform this task --\u003e\n\n- Creating an HTTP web server using NodeJS\n- Creating HTTP server using NodeJS.\n- Handling requests and sending responses in NodeJS\n- Setting up a callback function for starting the server\n- Headers provide extra information about the request.\n- Building HTTP Server in NodeJS\n- Creating a log for web server requests\n- Creating multiple pages using switch case on request URL.\n- Always support non-blocking requests for better performance\n\n```js\nconst myServer = http.createServer((req, res) =\u003e {  \n    res.end('Hello, Node.js Server!')\n});\n\n// run on port\nmyServer.listen(8000, () =\u003e {\n    console.log('Server running at http://localhost:8000/');   \n});\n\n```\n## Handling URL's in NodeJS\n![](./images/url.webp)\n\n## HTTP Methods\n\n- **GET** \n    - Purpose: Retrieve data from the server without modifying it.\n    - Use Case: Fetching a webpage or retrieving data from an API.\n- **POST**\n  - Purpose: Send data to the server to create or update a resource.\n  - Use Case: Submitting a form or uploading a file.\n- **PUT**\n  - Purpose: Update or create a resource at a specified URL.\n  - Use Case: Replacing the data of an existing resource or creating a new resource.\n- **PATCH**\n  - Purpose: Partially update a resource.\n  - Use Case: Updating a specific field of a resource.\n- **DELETE**\n  - Purpose: Remove a resource from the server.\n  - Use Case: Deleting a user or post.\n\n\n# Express JS\n\nExpress.js is a minimalist web application framework for Node.js. It is designed to simplify the process of building robust and scalable server-side applications. It allows developers to create web applications, RESTful APIs, and more, efficiently and with less boilerplate code.\n\n### How to Install Express.js?\n- Install Node.js from Node.js official site.\n- Use npm to install Express in your project:\n```bash\n  npm install express\n```\n\n## Basic Example\n\n```js\nconst express = require('express');\nconst app = express();\n\n// Define a route\napp.get('/', (req, res) =\u003e {\n  res.send('Welcome to Express.js!');\n});\n\n// Start the server\nconst PORT = 3000;\napp.listen(PORT, () =\u003e {\n  console.log(`Server is running on http://localhost:${PORT}`);\n});\n```\n## How Versioning Works in NodeJS?\n\n`^4.21.2`\n\n\n## What is REST API?\n\nIn simple words, a **REST API** is a way for different applications to talk to each other over the internet. It uses standard rules (like HTTP) so that a client (like a website or app) can ask a server for information or send it data.\n\n## Postman\nPostman is a popular API testing tool that allows developers to build, test, and manage APIs. It provides a user-friendly interface for sending HTTP requests and analyzing responses, making it a valuable tool for working with RESTful, GraphQL, and other web APIs.\n\n## MongoDB\n- install MongoDB\n- install MongoDB Shell\n\n```js\n1. mongod --version\n2. mongosh\n```\n\n### Interact with mongoDB\n```bash\nshow dbs\nuse \u003cdb_name\u003e\nshow collections\ndb.coll.find()\ndb.coll.insert()\n```\n\n### Shortner_URL\n---\n\n### Discord Bot\n---\n\n### Upload files by using Multer\n## Upload files by using Multer\n## Upload files by using Multer \n# tha nks its work\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheamnabb%2Fmern-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheamnabb%2Fmern-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheamnabb%2Fmern-stack/lists"}