{"id":23822502,"url":"https://github.com/niteeshl/pharmaforge","last_synced_at":"2026-05-03T17:31:59.532Z","repository":{"id":262889395,"uuid":"888680177","full_name":"NiteeshL/PharmaForge","owner":"NiteeshL","description":"Pharmacy web application made for DBMS course during college","archived":false,"fork":false,"pushed_at":"2025-01-03T18:48:02.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T05:42:19.141Z","etag":null,"topics":["css","dbms-project","html","javascript","nodejs","pharmacy","pharmacy-management-system","sql"],"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/NiteeshL.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-14T20:20:18.000Z","updated_at":"2025-01-20T05:21:50.000Z","dependencies_parsed_at":"2024-11-14T21:26:55.757Z","dependency_job_id":"e76c59d9-3339-4ed9-adc3-7f1e6d013ab8","html_url":"https://github.com/NiteeshL/PharmaForge","commit_stats":null,"previous_names":["niteeshl/pharmaforge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NiteeshL/PharmaForge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiteeshL%2FPharmaForge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiteeshL%2FPharmaForge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiteeshL%2FPharmaForge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiteeshL%2FPharmaForge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NiteeshL","download_url":"https://codeload.github.com/NiteeshL/PharmaForge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiteeshL%2FPharmaForge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32578578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["css","dbms-project","html","javascript","nodejs","pharmacy","pharmacy-management-system","sql"],"created_at":"2025-01-02T09:19:58.460Z","updated_at":"2026-05-03T17:31:59.526Z","avatar_url":"https://github.com/NiteeshL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PharmaForge\n\n## Overview\nThis project is a Pharmacy Management System that allows customers and employees to manage pharmacy-related activities such as logging in, viewing drug details, placing orders, submitting feedback, and more. The system is built using Node.js, Express.js, and MySQL.\n\n## Features\n- Customer and Employee login\n- Customer sign-up\n- View drug details\n- Place orders\n- Submit feedback and queries\n- View customer and order details\n- Delete customer account\n\n## Prerequisites\n- Node.js\n- MySQL\n\n## Setup Instructions\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/NiteeshL/PharmaForge\n   cd PharmaForge\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n3. **Set up the MySQL database:**\n   - Create a MySQL database named `pharmacy`.\n   - Import the SQL script from `sql.txt` to create the necessary tables and insert initial data.\n\n4. **Configure the database connection:**\n   - Update the MySQL connection details in `server.js`:\n     ```javascript\n     const connection = mysql.createConnection({\n       host: 'localhost',\n       user: 'root',\n       password: 'your-password',\n       database: 'pharmacy'\n     });\n     ```\n\n5. **Start the server:**\n   ```bash\n   node server.js\n   ```\n\n6. **Access the application:**\n   - Open a web browser and navigate to `http://localhost:3000`.\n\n## Project Structure\n```\n/PharmaForge\n├── public\n│   ├── customer.html\n│   ├── login.html\n│   ├── query.html\n│   ├── view.html\n│   ├── styles.css\n├── server.js\n├── sql.txt\n└── README.md\n```\n\n## API Endpoints\n\n### Authentication\n- **POST /login**: Handle login for both customers and employees.\n\n### Customer\n- **GET /getCustomerDetails**: Fetch customer details.\n- **POST /signup**: Handle customer sign-up.\n- **POST /deleteAccount**: Delete customer account.\n\n### Orders\n- **GET /getOrderDetails**: Fetch order details for a customer.\n- **POST /submitOrder**: Submit a new order.\n- **GET /getAllOrders**: Fetch all order details.\n\n### Drugs\n- **GET /getDrugDetails**: Fetch all drug details.\n- **POST /addDrug**: Add a new drug.\n- **POST /removeDrug**: Remove a drug.\n- **POST /subtractQuantity**: Subtract quantity from a drug.\n\n### Feedback and Queries\n- **POST /submitFeedback**: Submit feedback.\n- **GET /getFeedback**: Fetch all feedback.\n- **POST /submitQuery**: Submit a query.\n- **GET /getQuery**: Fetch all queries.\n\n### Contact\n- **GET /getContactDetails**: Fetch contact details.\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniteeshl%2Fpharmaforge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniteeshl%2Fpharmaforge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniteeshl%2Fpharmaforge/lists"}