{"id":17742872,"url":"https://github.com/bredefk/icpp","last_synced_at":"2025-07-27T22:33:19.731Z","repository":{"id":131012785,"uuid":"187616017","full_name":"BredeFK/ICPP","owner":"BredeFK","description":"Website for CSAMS data: Charts using PHP Google Graphs | Last solo-jam 48h | IMT2581 - Rapid Prototyping and Innovation","archived":false,"fork":false,"pushed_at":"2019-05-21T16:29:01.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-12T17:59:30.315Z","etag":null,"topics":["charts","jam","php","polymer","prototyping","rapid","solo"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BredeFK.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}},"created_at":"2019-05-20T10:05:54.000Z","updated_at":"2023-01-06T16:07:48.000Z","dependencies_parsed_at":"2023-05-25T09:45:34.852Z","dependency_job_id":null,"html_url":"https://github.com/BredeFK/ICPP","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"6aedc5c491c6ac1b90b064bdb01bc7bcae738350"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BredeFK/ICPP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BredeFK%2FICPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BredeFK%2FICPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BredeFK%2FICPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BredeFK%2FICPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BredeFK","download_url":"https://codeload.github.com/BredeFK/ICPP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BredeFK%2FICPP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267436588,"owners_count":24086898,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":["charts","jam","php","polymer","prototyping","rapid","solo"],"created_at":"2024-10-26T05:41:59.606Z","updated_at":"2025-07-27T22:33:19.687Z","avatar_url":"https://github.com/BredeFK.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graphs using PHP and Google-Graphs\r\nThis is my Last solo-jam for the course [IMT2581 - Rapid Prototyping and Innovation](https://www.ntnu.edu/studies/courses/IMT2581/2018/1#tab=omEmnet) with the [IMT2291 - Web Technology](https://www.ntnu.edu/studies/courses/IMT2291#tab=omEmnet) course in mind. \r\n\r\n**Changes from original idea**\r\nThe original plan was to use polymer and have interactive charts. \r\n* Learning Polymer would have been taking up too much time from the actual development so i skipped that part.\r\n\r\n## Note\r\n* This project can be looked as a kind of plugin for my [bachelor project](https://github.com/JohanAanesen/CSAMS) and is for displaying charts of the databse contents.\r\n* It's also to practice for an exam I have that involves PHP, Polymer, Twig and technologies like that.\r\n* I use ex `users.id, users.name, users.email_student, users.teacher, users.email_private` instead of `*` in queries for safer extraction.\r\n* The IDE might say there is some errors in `twig/index.html`, but that's wrong. Everything works\r\n* I lost some time to the sql queries because some of them took longer than expected.\r\n\r\n## Requirements\r\n**The requirements was very loose, so I make my own** \r\n* ~~Get number of delivered submissions(re-deliver too) to the different assignments/courses.~~ This dosen't work beacuse when a user re-deliver or withdraws an assignment and deliver again, the assignment will only be updated. i.e there will always be max one assignment submission for each user. \r\n* Get number of 'active' users vs. non active. The users that don't belong to any courses, and put in pie chart + when clicked show list or more info atleast.\r\n* Get most logged events\r\n\r\n## TODO\r\n* Implement twig\r\n* Get more data to create charts with\r\n* Check out `google charts polymer` and implement something like that\r\n* Check out triggers https://developers.google.com/chart/interactive/docs/gallery/piechart\r\n\r\n## Installation\r\n1. Clone project in to the folder `C:\\xampp\\htdocs`\r\n2. Export `cs53` database with settings like this: ![image](https://user-images.githubusercontent.com/32249338/58019361-a4b6b100-7b05-11e9-84c8-2d11bf90b6b7.png)\r\n3. Start XAMPP\r\n4. Import database with name `cs53`\r\n5. Run `composer install` in project\r\n6. Go to `localhost/ICPP`\r\n7. Profit\r\n\r\n## Sources\r\n1. Former project from [IMT2291](https://www.ntnu.edu/studies/courses/IMT2291#tab=omEmnet) https://github.com/JohanAanesen/MeToobe\r\n2. Bachelor project where the data will come from https://github.com/JohanAanesen/CSAMS\r\n3. https://developers.google.com/chart/interactive/docs/gallery\r\n\r\n## Other\r\nI had a lot of techincal issues as I'm kinda new to PHP, twig and polymer.\r\n\r\n## Pictures\r\n![image](https://user-images.githubusercontent.com/32249338/58111150-3c44fe00-7bf1-11e9-87e9-8e1dd98a17e0.png)\r\n\r\n![image](https://user-images.githubusercontent.com/32249338/58111173-47982980-7bf1-11e9-879b-ff26503a3d34.png)\r\n\r\n![image](https://user-images.githubusercontent.com/32249338/58111261-71515080-7bf1-11e9-9ed6-be872d75a907.png)\r\n\r\n![image](https://user-images.githubusercontent.com/32249338/58111270-76ae9b00-7bf1-11e9-942a-e11c32c40a37.png)\r\n\r\n![image](https://user-images.githubusercontent.com/32249338/58111280-7ca47c00-7bf1-11e9-9165-abaa2b9b8f31.png)\r\n\r\n![image](https://user-images.githubusercontent.com/32249338/58111305-83cb8a00-7bf1-11e9-9c13-9a226c4229b0.png)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredefk%2Ficpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbredefk%2Ficpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredefk%2Ficpp/lists"}