{"id":23057433,"url":"https://github.com/concaption/flask-charts-js","last_synced_at":"2025-10-16T03:01:52.000Z","repository":{"id":212489825,"uuid":"731617499","full_name":"concaption/flask-charts-js","owner":"concaption","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-14T13:47:56.000Z","size":396,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T19:45:05.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/concaption.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-14T13:37:20.000Z","updated_at":"2023-12-28T21:28:36.000Z","dependencies_parsed_at":"2023-12-14T14:46:07.121Z","dependency_job_id":"dcccff01-8c39-4874-b144-d45366fdbcd9","html_url":"https://github.com/concaption/flask-charts-js","commit_stats":null,"previous_names":["concaption/flask-charts-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concaption%2Fflask-charts-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concaption%2Fflask-charts-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concaption%2Fflask-charts-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concaption%2Fflask-charts-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/concaption","download_url":"https://codeload.github.com/concaption/flask-charts-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944389,"owners_count":20858773,"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":[],"created_at":"2024-12-16T02:12:17.420Z","updated_at":"2025-10-16T03:01:51.931Z","avatar_url":"https://github.com/concaption.png","language":"JavaScript","readme":"# Flask RESTX and ChartJS\n\nThis project is an example of how to implement charts using Flask/RestX as a backend server, ChartJS for charting, and Bootstrap 5 for styling.\n\n![screenshot.png](screenshot.png)\n## Project Structure\n\n```\n.gitattributes\n.gitignore\nLICENSE.md\nREADME.md\napi.py\napp.py\ndata/\n\tmonthly_customers.csv\n\tmonthly_sales.csv\n\tproduct_sales.csv\ndata_loader.py\nmodels.py\nrequirements.txt\nstatic/\n\tjs/\n\t\tcustom.js\ntemplates/\n\tindex.html\n```\n\n## How to Run\n\n1. Install the required packages from `requirements.txt`:\n\n```sh\npip install -r requirements.txt\n```\n\n2. Run the Flask application:\n\n```sh\npython app.py\n```\n\nThe application will be available at `http://localhost:5000`.\n\n## API Endpoints\n\nThe application provides the following API endpoints:\n\n- `/api/MonthlyCustomers`: Returns monthly customer data.\n- `/api/MonthlySales`: Returns monthly sales data.\n- `/api/ProductSales`: Returns product sales data.\n\nThese endpoints are used in the `custom.js` file to fetch data and display charts on the index page.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE.md` file for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcaption%2Fflask-charts-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconcaption%2Fflask-charts-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcaption%2Fflask-charts-js/lists"}