{"id":19081062,"url":"https://github.com/sandundil2002/node-crud","last_synced_at":"2026-04-09T06:43:16.068Z","repository":{"id":261175851,"uuid":"883490060","full_name":"sandundil2002/Node-CRUD","owner":"sandundil2002","description":"This repository is a lightweight, web-based app for easy inventory management, featuring item CRUD operations with Node.js, MySQL, and Bootstrap.","archived":false,"fork":false,"pushed_at":"2024-11-05T06:11:11.000Z","size":1364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T06:11:34.643Z","etag":null,"topics":["bootstrap","express-js","html","jquery","mysql-database","node-js"],"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/sandundil2002.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-11-05T03:49:09.000Z","updated_at":"2024-11-05T06:14:24.000Z","dependencies_parsed_at":"2024-11-05T07:29:48.412Z","dependency_job_id":null,"html_url":"https://github.com/sandundil2002/Node-CRUD","commit_stats":null,"previous_names":["sandundil2002/rest_api_node","sandundil2002/node-crud"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sandundil2002/Node-CRUD","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandundil2002%2FNode-CRUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandundil2002%2FNode-CRUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandundil2002%2FNode-CRUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandundil2002%2FNode-CRUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandundil2002","download_url":"https://codeload.github.com/sandundil2002/Node-CRUD/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandundil2002%2FNode-CRUD/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259616382,"owners_count":22884883,"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":["bootstrap","express-js","html","jquery","mysql-database","node-js"],"created_at":"2024-11-09T02:32:47.720Z","updated_at":"2025-12-30T19:00:44.068Z","avatar_url":"https://github.com/sandundil2002.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eNode CRUD\u003c/h1\u003e\n\n\u003cp\u003eThis repository is a full-featured CRUD API built with Node.js and MySQL. This project provides a simple and efficient way to manage items with operations to Create, Read, Update, and Delete (CRUD) item records. The backend is built with Express, and the frontend uses HTML and Bootstrap.\u003c/p\u003e\n\n\u003ch3\u003eFeatures\u003c/h3\u003e\n\n  * REST API: Fully functional CRUD API with endpoints for managing items.\n  * Database: Uses MySQL to store and retrieve item data.\n  * Frontend: A simple HTML form with Bootstrap for interacting with the API.\n  * CORS Support: Configured to handle cross-origin requests.\n  * Scalable Structure: Industry-standard project structure for easy scalability and maintenance.\n\n\u003ch3\u003ePrerequisites\u003c/h3\u003e\n\n  * Node.js (version 14 or above)\n  * MySQL (version 5.7 or above)\n  * npm (usually installed with Node.js)\n\n\u003ch3\u003eGetting Started\u003c/h3\u003e\n\n  1. Clone the Repository\n     \n    git clone https://github.com/sandundil2002/Node-CRUD.git\n    cd inventoryhub\n\n  2. Install Dependencies\n\n    npm install\n\n  3. Set Up the Database\n\n    CREATE DATABASE node_api;\n    \n    CREATE TABLE items (\n    id INT AUTO_INCREMENT PRIMARY KEY,\n    name VARCHAR(255) NOT NULL,\n    price DECIMAL(10, 2) NOT NULL);\n\n  4. Update db.js with your own mysql configurations\n\n    const pool = mysql.createPool({\n    host: \"localhost\", // Your MySQL server host (e.g., localhost)\n    user: \"\", // Your MySQL username\n    password: \"\", // Your MySQL password\n    database: \"node_api\", // The database name you want to connect \n    });\n\n  4. Test the API\n\n    npm run dev\n\n  You can test the API using Postman or similar tools. The available endpoints are:\n\n  * GET /api/items – Retrieve all items\n  * GET /api/items/:id – Retrieve an item by ID\n  * POST /api/items – Create a new item\n  * PUT /api/items/:id – Update an item by ID\n  * DELETE /api/items/:id – Delete an item by ID\n\n  \u003ch3\u003eAPI Documentation\u003c/h3\u003e\n\n  * You can view the detailed API documentation with example requests and responses \u003ca href=\"https://documenter.getpostman.com/view/35384990/2sAY4yeM5P\"\u003ehere\u003c/a\u003e.\n\n  \u003ch3\u003eFrontend\u003c/h3\u003e\n\n  \u003cp\u003eThe project includes a simple frontend form to interact with the API. To use it, open public/index.html in a web browser and try adding, updating, or deleting items.\u003c/p\u003e\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandundil2002%2Fnode-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandundil2002%2Fnode-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandundil2002%2Fnode-crud/lists"}