{"id":19195550,"url":"https://github.com/mdshimulmahmud/restful-api","last_synced_at":"2026-05-16T06:33:58.258Z","repository":{"id":163194010,"uuid":"360777154","full_name":"MdShimulMahmud/RESTful-API","owner":"MdShimulMahmud","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-02T00:12:03.000Z","size":355,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T04:41:25.582Z","etag":null,"topics":["complete-project","crud-application","jwt","nodejs","restful-api"],"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/MdShimulMahmud.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}},"created_at":"2021-04-23T05:51:50.000Z","updated_at":"2024-01-19T06:55:56.000Z","dependencies_parsed_at":"2024-04-02T01:27:11.595Z","dependency_job_id":"3a90d98a-c5cd-46e0-8d59-50386aed73c0","html_url":"https://github.com/MdShimulMahmud/RESTful-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MdShimulMahmud/RESTful-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MdShimulMahmud%2FRESTful-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MdShimulMahmud%2FRESTful-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MdShimulMahmud%2FRESTful-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MdShimulMahmud%2FRESTful-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MdShimulMahmud","download_url":"https://codeload.github.com/MdShimulMahmud/RESTful-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MdShimulMahmud%2FRESTful-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33092688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["complete-project","crud-application","jwt","nodejs","restful-api"],"created_at":"2024-11-09T12:10:37.093Z","updated_at":"2026-05-16T06:33:58.242Z","avatar_url":"https://github.com/MdShimulMahmud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js CRUD Application\n\nThis is a simple CRUD (Create, Read, Update, Delete) RESTful API built using Node.js and Express.js. The API allows users to manage orders and products, as well as perform user authentication and authorization.\n\n## Features\n\n- User can create an account and log in\n- User can create, read, update, and delete orders and products via RESTful API\n- User can upload files (images, documents, etc.) using Multer\n- Secure user authentication and password hashing using bcrypt\n- Uses Mongoose for MongoDB integration\n\n## Technologies Used\n\n- Node.js\n- Express.js\n- MongoDB\n- Mongoose\n- Multer\n- bcrypt\n- jsonwebtoken\n\n## Installation\n\n1. Clone the repository:\n\n```\ngit clone https://github.com/MdShimulMahmud/RESTful-API.git\n\n```\n\n2. Install dependencies:\n\n```\ncd RESTful-API\n\nnpm install\n```\n\n3. Create a `.env` file and add your MongoDB Atlas connection string and session secret:\n\n```\nMONGO_PASSWORD=\u003cyour-mongodb-atlas-uri\u003e\n\nJWT_KEY=\u003cyour-secret-key\u003e\n```\n\n4. Start the application:\n\n```\nnpm start\n\n```\n\n## API Testing Tools\n\n```\nPostman\n```\n\n## API Endpoints\n\n### Authentication\n\n- `POST /api/users/signup`: Creates a new user account. Expects a JSON body with `email` and `password` fields.\n- `POST /api/users/login`: Authenticates a user. Expects a JSON body with `email` and `password` fields.\n\n#### Screenshot\n\n![Authentication](https://github.com/MdShimulMahmud/RESTful-API/blob/master/images/auth.JPG)\n\n### Products\n\n- `GET /api/products`: Returns a list of all products.\n- `GET /api/products/:id`: Returns the product with the specified ID.\n- `POST /api/products`: Creates a new product. Expects a JSON body with `name`, `price`, and `file` fields (for file upload).\n- `PUT /api/products/:id`: Updates the product with the specified ID. Expects a JSON body with `name` and `price` fields (for non-file updates).\n- `DELETE /api/products/:id`: Deletes the product with the specified ID.\n\n#### Screenshot\n\n![Products](https://github.com/MdShimulMahmud/RESTful-API/blob/master/images/products.JPG)\n\n### Orders\n\n- `GET /api/orders`: Returns a list of all orders.\n- `GET /api/orders/:id`: Returns the order with the specified ID.\n- `POST /api/orders`: Creates a new order. Expects a JSON body with `productId` and `quantity` fields.\n- `PUT /api/orders/:id`: Updates the order with the specified ID. Expects a JSON body with `productId` and `quantity` fields.\n- `DELETE /api/orders/:id`: Deletes the order with the specified ID.\n\n#### Screenshot\n\n![Orders](https://github.com/MdShimulMahmud/RESTful-API/blob/master/images/orders.JPG)\n\n## File Uploads\n\nTo upload files, send a `multipart/form-data` request with a `file` field containing the file to be uploaded.\n\n## Security\n\nThis API uses bcrypt for password hashing and verification to ensure secure authentication. Please make sure to set a strong JWT_KEY in your `.env` file to further enhance security.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdshimulmahmud%2Frestful-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdshimulmahmud%2Frestful-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdshimulmahmud%2Frestful-api/lists"}