{"id":28717956,"url":"https://github.com/sreddy-96/top-inventory-app","last_synced_at":"2026-04-15T10:36:46.285Z","repository":{"id":293932617,"uuid":"985520122","full_name":"SReddy-96/TOP-inventory-app","owner":"SReddy-96","description":"An Express-Node.js app using a CRUD design for categories and items","archived":false,"fork":false,"pushed_at":"2025-05-28T00:58:53.000Z","size":130,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T04:08:42.558Z","etag":null,"topics":["css","ejs","express","express-validator","javascript","nodejs","postgresql"],"latest_commit_sha":null,"homepage":"https://tiny-genevra-sreddy-96-618dd62d.koyeb.app/","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/SReddy-96.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":"2025-05-18T00:02:45.000Z","updated_at":"2025-05-28T11:35:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3d23294-908f-47d1-8b7c-75535c3b7f69","html_url":"https://github.com/SReddy-96/TOP-inventory-app","commit_stats":null,"previous_names":["sreddy-96/top-inventory-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SReddy-96/TOP-inventory-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SReddy-96%2FTOP-inventory-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SReddy-96%2FTOP-inventory-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SReddy-96%2FTOP-inventory-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SReddy-96%2FTOP-inventory-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SReddy-96","download_url":"https://codeload.github.com/SReddy-96/TOP-inventory-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SReddy-96%2FTOP-inventory-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259919460,"owners_count":22932073,"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":["css","ejs","express","express-validator","javascript","nodejs","postgresql"],"created_at":"2025-06-15T04:08:42.673Z","updated_at":"2026-04-15T10:36:46.252Z","avatar_url":"https://github.com/SReddy-96.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TOP Inventory App - ShopSort\n\n## Summary\n\nA smart shopping list application that helps you organize items by categories. Based on an app I used daily before it was taken down: [HNGRY](https://iamhngry.com/en/).\n\n## Preview\n\n| Desktop                                 | Mobile                                |\n| --------------------------------------- | ------------------------------------- |\n| ![Desktop](./public/images/desktop.jpg) | ![Mobile](./public/images/mobile.jpg) |\n\n## Project Highlights\n\n- Database integration for CRUD operations on items and categories\n- Proper error handling with custom error middleware\n- Deployment using Koyeb hosting platform\n- Custom favicon implementation using `serve-favicon`\n- Admin authentication middleware for Update and Delete operations\n- Category data middleware for seamless data flow\n\n## Challenges Overcome\n\n- Successfully deploying to Koyeb with SSL configuration\n- Implementing secure admin password prompts\n- Creating a responsive horizontal scrollable navigation bar for categories\n- Adding custom favicon to the application\n- Developing middleware to handle admin authentication before POST requests\n- Implementing dynamic active classes using EJS conditionals to highlight current category\n\n## New Skills Acquired\n\n- Password validation middleware using hidden input fields\n- Proper MVC (Model-View-Controller) architecture setup\n- Koyeb deployment with database URI and SSL configuration\n- Comprehensive error handling with custom error middleware\n- Modular route handling using array syntax for multiple middleware functions\n- Form validation using `express-validator` for input sanitization and validation\n\n## Technologies Used\n\n- **Frontend:** HTML, CSS, JavaScript, EJS templating\n- **Backend:** Node.js, Express.js\n- **Database:** PostgreSQL with PG driver\n- **Validation:** express-validator\n- **Utilities:** serve-favicon, dotenv\n- **Deployment:** Koyeb\n\n## Installation \u0026 Setup\n\nTo clone and run this project locally:\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/SReddy-96/TOP-inventory-app.git\n   ```\n\n2. **Navigate to project directory:**\n\n   ```bash\n   cd TOP-inventory-app\n   ```\n\n3. **Install dependencies:**\n\n    ```bash\n    npm install\n    ```\n\n4. **Set up environment variables:**\n   - Create a `.env` file in the root directory\n   - Add your database connection string and other required variables\n\n5. **Start the server:**\n\n   ```bash\n   node app.js\n   ```\n\n6. **Access the application:**\n   - Open your browser and navigate to `http://localhost:3000` (or the port specified in your .env file)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsreddy-96%2Ftop-inventory-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsreddy-96%2Ftop-inventory-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsreddy-96%2Ftop-inventory-app/lists"}