{"id":28288721,"url":"https://github.com/josecorreamorales/node-web-server","last_synced_at":"2026-05-09T15:15:02.988Z","repository":{"id":192279795,"uuid":"685606678","full_name":"JoseCorreaMorales/Node-web-server","owner":"JoseCorreaMorales","description":"This is a simple web server built with Node.js and Express. It allows you to perform CRUD operations on a list of users stored in a JSON file.","archived":false,"fork":false,"pushed_at":"2023-09-02T18:13:18.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T00:13:37.288Z","etag":null,"topics":["express","expressjs","javascript","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JoseCorreaMorales.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}},"created_at":"2023-08-31T15:53:48.000Z","updated_at":"2023-09-07T20:04:23.000Z","dependencies_parsed_at":"2023-09-03T23:42:55.804Z","dependency_job_id":"560d6eaa-a51f-4c0e-a828-e4240f4eeac2","html_url":"https://github.com/JoseCorreaMorales/Node-web-server","commit_stats":null,"previous_names":["josecorreamorales/node-web-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JoseCorreaMorales/Node-web-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseCorreaMorales%2FNode-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseCorreaMorales%2FNode-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseCorreaMorales%2FNode-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseCorreaMorales%2FNode-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoseCorreaMorales","download_url":"https://codeload.github.com/JoseCorreaMorales/Node-web-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseCorreaMorales%2FNode-web-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260579543,"owners_count":23031204,"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":["express","expressjs","javascript","nodejs","rest-api"],"created_at":"2025-05-22T00:12:58.146Z","updated_at":"2026-05-09T15:15:02.967Z","avatar_url":"https://github.com/JoseCorreaMorales.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node-web-server\n \n This is a simple web server built with Node.js and Express. It allows you to perform CRUD operations on a list of users stored in a JSON file.\n\n\n \u003cp align=\"center\"\u003e\n \u003cimg src=\"https://img.shields.io/badge/-Node.js-339933?style=for-the-badge\u0026logo=node.js\u0026logoColor=white\" alt=\"Node.js Icon\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/-Git-F05032?style=for-the-badge\u0026logo=git\u0026logoColor=white\" alt=\"Git Icon\" /\u003e\n \u003cimg src=\"https://img.shields.io/badge/-JS-F7DF1E?style=for-the-badge\u0026logo=javascript\u0026logoColor=black\" alt=\"JavaScript Icon\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/-Express.js-000000?style=for-the-badge\u0026logo=express\u0026logoColor=white\" alt=\"Express.js Icon\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/-Postman-FF6C37?style=for-the-badge\u0026logo=postman\u0026logoColor=white\" alt=\"Postman Icon\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/-JSON-000000?style=for-the-badge\u0026logo=json\u0026logoColor=white\" alt=\"JSON Icon\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/-REST%20API-FF6C37?style=for-the-badge\" alt=\"REST API Icon\" /\u003e\n \n \u003c/p\u003e\n\n## Installation\n1. Clone the repository.\n2. Install the dependencies with *`npm install`*.\n3. Start the server with npm *`run dev`*.\n\n## Usage\nThe server runs on http://localhost:3000. You can use any HTTP client to interact with the API. Here are the available endpoints:\n* *`GET /`*: Returns a welcome message.\n* *`GET /users`*: Returns a list of all users.\n* *`GET /users/:id`*: Returns a single user with the given ID.\n* *`POST /users`*: Creates a new user.\n* *`PUT /users/:id`*: Updates a user with the given ID.\n* *`DELETE /users/:id`*: Deletes a user with the given ID.\n\n### Postman\nTo send parameters using Postman, follow these steps:\n\n1. Open Postman and make sure the request is a POST method.\n2. Select the \"Body\" tab.\n3. Select \"raw\" and then \"JSON\" from the dropdown menu.\n4. Enter the parameters in JSON format in the text box.\n5. Click \"Send\" to send the request.\n\nFor example, to create a new user, you can send a POST request to *`http://localhost:3000/users`* with the following JSON in the request body:\n```js\n\n{ \n    \"first_name\": \"Bruce\",\n    \"last_name\": \"Billsberry\",\n    \"email\": \"bbillsberry1m@jigsy.com\"\n\n}\n```\n\nThis will create a new user with the details provided in the request body. You can verify if the user has been created successfully by sending a GET request to *`http://localhost:3000/users`*.\n### Example\nTo create a new user, send a POST request to http://localhost:3000/users with the following JSON payload:\n\n```json\n{\n        \"first_name\": \"Skipton\",\n        \"last_name\": \"Sola\",\n        \"email\": \"ssola2m@last.fm\"\n}\n```\n\nThe server will respond with a JSON object containing the new user:\n\n```json\n{\n  \"message\": \"User Created\",\n  \"body\": {\n        \"id\": \"x\",\n        \"first_name\": \"Kirby\",\n        \"last_name\": \"O' Shea\",\n        \"email\": \"koshea2l@jigsy.com\"\n  }\n}\n\n```\n\n## Resources\n\n* [Node.js](https://nodejs.org/en/)\n* [Express](https://expressjs.com/)\n* [Postman](https://www.postman.com/)\n* [JSON MOCK DATA](https://www.mockaroo.com/)\n## License\nThis project is licensed under the ISC License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosecorreamorales%2Fnode-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosecorreamorales%2Fnode-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosecorreamorales%2Fnode-web-server/lists"}