{"id":50953648,"url":"https://github.com/batu3384/fast-express-kds","last_synced_at":"2026-06-18T04:02:38.138Z","repository":{"id":339029766,"uuid":"909151135","full_name":"batu3384/fast-express-kds","owner":"batu3384","description":"Decision support dashboard for cargo operations with branch analytics, personnel scoring, reporting, comparison, and forecasting.","archived":false,"fork":false,"pushed_at":"2026-04-02T17:41:10.000Z","size":1923,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T00:50:05.513Z","etag":null,"topics":["cargo-operations","chartjs","decision-support-system","express","flask","forecasting","mysql","nodejs"],"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/batu3384.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-27T21:37:15.000Z","updated_at":"2026-04-02T19:58:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/batu3384/fast-express-kds","commit_stats":null,"previous_names":["batu3384/fast_express_kds_proje","batu3384/fast-express-kds"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/batu3384/fast-express-kds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batu3384%2Ffast-express-kds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batu3384%2Ffast-express-kds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batu3384%2Ffast-express-kds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batu3384%2Ffast-express-kds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batu3384","download_url":"https://codeload.github.com/batu3384/fast-express-kds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batu3384%2Ffast-express-kds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34475375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cargo-operations","chartjs","decision-support-system","express","flask","forecasting","mysql","nodejs"],"created_at":"2026-06-18T04:02:37.339Z","updated_at":"2026-06-18T04:02:38.133Z","avatar_url":"https://github.com/batu3384.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fast Express KDS\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/showcase.png\" alt=\"Fast Express KDS showcase assembled from report screens\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Node.js\" src=\"https://img.shields.io/badge/Node.js-Express-111827?style=flat-square\u0026logo=nodedotjs\u0026logoColor=white\"\u003e\n  \u003cimg alt=\"Python\" src=\"https://img.shields.io/badge/Python-Flask-1d4ed8?style=flat-square\u0026logo=python\u0026logoColor=white\"\u003e\n  \u003cimg alt=\"Database\" src=\"https://img.shields.io/badge/Database-MySQL-0b7285?style=flat-square\u0026logo=mysql\u0026logoColor=white\"\u003e\n  \u003cimg alt=\"Focus\" src=\"https://img.shields.io/badge/Focus-Decision%20Support-8b1e3f?style=flat-square\"\u003e\n  \u003cimg alt=\"Course\" src=\"https://img.shields.io/badge/Course-YBS%203015-6b7280?style=flat-square\"\u003e\n\u003c/p\u003e\n\nFast Express KDS is a decision support workspace built for middle managers in cargo operations. It combines branch analytics, personnel scoring, cross-branch comparison, reporting, and an inflation-aware forecasting service in one browser-based flow.\n\nThe opening visual above is assembled from the original report screens so the repository presents the real project surfaces instead of a generic banner.\n\n## What the system covers\n\n- Branch-level performance analysis with yearly cargo, income, cost, rent, and profit views\n- Personnel analytics with scored performance, delivery ratios, and \"employee of the month\" summaries\n- Cross-branch comparison across selectable periods\n- Forecasting service that uses historical branch data and inflation trend projection\n- Reporting views for branch-oriented operational review\n- Session-based login flow for the main dashboard routes\n\n## Product surfaces\n\n- `public/login.html`: login screen for authenticated access\n- `public/index.html`: operational home dashboard with top-line metrics and charts\n- `public/subeler.html` and `public/sube_analiz.html`: branch selection and branch drill-down\n- `public/personel.html`: personnel scoring, ranking, and comparison\n- `public/karsilastirma.html`: map-backed cross-branch comparison flow\n- `public/tahminleme.html`: branch selection plus forecast generation\n- `public/raporlama.html`: report selection and branch summaries\n\n## Architecture\n\n- `app.js` runs the main Express application, session management, MySQL queries, dashboard APIs, and protected routes.\n- `app.py` exposes the forecasting endpoint and computes branch projections with linear regression and an inflation adjustment.\n- `public/` contains the interface layer for login, dashboards, charts, branch analysis, personnel review, comparison, forecasting, and reporting.\n- MySQL is the operational data source for branches, personnel, cargo history, and cost calculations.\n- `data-seeder.js` is preserved as a database validation helper for an already imported course schema.\n\n## Academic context\n\n- Course: `YBS 3015 Karar Destek Sistemleri`\n- Project title: `Fast Express Kargo KDS`\n- Project window: `Oct 2024 - Dec 2024`\n- Student: `Batuhan Yüksel`\n\nThe original project goal was to support middle-management decisions such as branch performance review, profitability tracking, and branch opening or closure evaluation through data-backed views instead of manual interpretation.\n\n## Tech stack\n\n| Area | Tools |\n| --- | --- |\n| Web app | Node.js, Express.js, Express Session |\n| Forecasting service | Python, Flask, scikit-learn, NumPy |\n| Database | MySQL, mysql2 |\n| Frontend | HTML, CSS, JavaScript, Chart.js, Leaflet |\n| Operations | node-cron, bcrypt, dotenv |\n\n## Repository structure\n\n```text\n.\n|-- app.js\n|-- app.py\n|-- data-seeder.js\n|-- package.json\n|-- public/\n|   |-- index.html\n|   |-- subeler.html\n|   |-- sube_analiz.html\n|   |-- personel.html\n|   |-- karsilastirma.html\n|   |-- tahminleme.html\n|   |-- raporlama.html\n|   `-- login.html\n`-- docs/assets/\n```\n\n## Running locally\n\n1. Install the Node.js dependencies:\n\n   ```bash\n   npm install\n   ```\n\n2. Create an environment file from the provided example:\n\n   ```bash\n   cp .env.example .env\n   ```\n\n3. Install the Python forecasting service dependencies:\n\n   ```bash\n   python3 -m venv .venv\n   source .venv/bin/activate\n   pip install -r requirements.txt\n   ```\n\n4. Make sure the MySQL schema from the original course delivery is already imported into the `fast_express` database.\n\n   The public repository includes the application code and a database validation helper, but it does not reconstruct the full schema from scratch.\n\n5. Optionally verify that the imported database contains the expected core tables:\n\n   ```bash\n   npm run db:check\n   ```\n\n6. Start the Express app:\n\n   ```bash\n   npm start\n   ```\n\n7. Start the forecasting API in a second terminal:\n\n   ```bash\n   source .venv/bin/activate\n   python app.py\n   ```\n\n8. If your database still stores plain-text legacy passwords, enable one-time password migration before the first boot:\n\n   ```bash\n   AUTO_HASH_LEGACY_PASSWORDS=true npm start\n   ```\n\nThe public interface labels are primarily Turkish because the project was originally delivered for a local academic setting.\n\n## Notes on scope\n\n- This repository is strongest as an academic product case study and dashboard implementation.\n- The forecasting flow is intentionally lightweight and centered on the course deliverable rather than production-grade model operations.\n- The codebase contains both the operational dashboard and the small Python forecasting sidecar because that split is part of the original project structure.\n\n## License\n\nReleased under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatu3384%2Ffast-express-kds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatu3384%2Ffast-express-kds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatu3384%2Ffast-express-kds/lists"}