{"id":21193961,"url":"https://github.com/simran1002/3d-materials","last_synced_at":"2026-05-11T07:15:30.190Z","repository":{"id":246572067,"uuid":"821050863","full_name":"simran1002/3D-Materials","owner":"simran1002","description":"This is a Node.js backend for managing 3D printing materials. It utilizes MongoDB to store information about various 3D printing materials and includes functionality for handling image uploads associated with each material.","archived":false,"fork":false,"pushed_at":"2024-06-28T19:05:01.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T13:51:51.489Z","etag":null,"topics":["3d-printing","mongodb","multer-storage","nodejs"],"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/simran1002.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":"2024-06-27T17:55:26.000Z","updated_at":"2024-06-28T19:06:08.000Z","dependencies_parsed_at":"2024-06-28T19:29:44.127Z","dependency_job_id":"dbf42231-6581-4575-bf12-d61787eff557","html_url":"https://github.com/simran1002/3D-Materials","commit_stats":null,"previous_names":["simran1002/3d-materials"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simran1002%2F3D-Materials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simran1002%2F3D-Materials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simran1002%2F3D-Materials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simran1002%2F3D-Materials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simran1002","download_url":"https://codeload.github.com/simran1002/3D-Materials/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243647376,"owners_count":20324699,"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":["3d-printing","mongodb","multer-storage","nodejs"],"created_at":"2024-11-20T19:18:29.375Z","updated_at":"2026-05-11T07:15:30.132Z","avatar_url":"https://github.com/simran1002.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 3D Printing Materials Backend\n\nThis is a Node.js backend for managing 3D printing materials. It utilizes MongoDB to store information about various 3D printing materials and includes functionality for handling image uploads associated with each material.\n\n## Features\n\n- CRUD operations for 3D printing materials\n- Image upload and storage\n- Validation and error handling\n\n\n## Prerequisites\n\n- Node.js installed\n- MongoDB installed and running\n\n## Setup\n\n1. Clone the repository\n    ```bash\n    git clone https://github.com/simran1002/3D-Materials.git\n    cd 3d-printing-backend\n    ```\n\n2. Install dependencies\n    ```bash\n    npm install\n    ```\n\n4. Start the server\n    ```bash\n    npm start\n    ```\n\n## API Endpoints\n\n### Get All Materials\n\n- **URL**: `/api/materials`\n- **Method**: `GET`\n- **Description**: Fetch all materials from the database, excluding image data.\n\n### Get Material by ID\n\n- **URL**: `/api/materials/:id`\n- **Method**: `GET`\n- **Description**: Retrieve a specific material by its ID, including its associated image.\n\n### Create a New Material\n\n- **URL**: `/api/materials`\n- **Method**: `POST`\n- **Description**: Add a new material to the database, including an image upload.\n- **Form-Data**:\n  - `name`: Name of the material (Text)\n  - `technology`: Printing technology used (Text)\n  - `colors`: Array of available colors (Text, e.g., `[\"Red\", \"Blue\"]`)\n  - `pricePerGram`: Price per gram of the material (Text)\n  - `applicationTypes`: Array of application types (Text, e.g., `[\"Prototyping\", \"Mechanical Parts\"]`)\n  - `image`: Image file representing the material (File)\n\n### Update a Material by ID\n\n- **URL**: `/api/materials/:id`\n- **Method**: `PUT`\n- **Description**: Update an existing material's details, optionally updating its associated image.\n- **Form-Data**: Same as the `POST` request.\n\n### Delete a Material by ID\n\n- **URL**: `/api/materials/:id`\n- **Method**: `DELETE`\n- **Description**: Remove a material from the database by its ID.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimran1002%2F3d-materials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimran1002%2F3d-materials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimran1002%2F3d-materials/lists"}