{"id":16433667,"url":"https://github.com/dfa1234/report-dashboard","last_synced_at":"2026-05-01T21:05:04.465Z","repository":{"id":121929688,"uuid":"460620016","full_name":"dfa1234/report-dashboard","owner":"dfa1234","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-24T18:00:43.000Z","size":616,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T19:23:27.661Z","etag":null,"topics":["mongodb","netlify-functions","react-google-charts","reactjs","typescript"],"latest_commit_sha":null,"homepage":"https://report-dashboard.netlify.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfa1234.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-02-17T21:51:24.000Z","updated_at":"2022-02-22T20:01:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"5bc8c6ed-06a2-4c2a-99ac-f3126d1faa84","html_url":"https://github.com/dfa1234/report-dashboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dfa1234/report-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfa1234%2Freport-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfa1234%2Freport-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfa1234%2Freport-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfa1234%2Freport-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfa1234","download_url":"https://codeload.github.com/dfa1234/report-dashboard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfa1234%2Freport-dashboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["mongodb","netlify-functions","react-google-charts","reactjs","typescript"],"created_at":"2024-10-11T08:46:51.048Z","updated_at":"2026-05-01T21:05:04.425Z","avatar_url":"https://github.com/dfa1234.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Report dashboard\n\nDemo react application using Netlify functions\n\nLive demo deployed here: https://report-dashboard.netlify.app/\n\n## Libraries used\n\nFrontend:\n\n-   Project bootstrapped with [Create React App](https://github.com/facebook/create-react-app)\n-   _React_ version 17 with typescript\n-   _React google chart_, for rendering a line chart\n-   _React Material UI_ + lab, for some basic UI component: Box, Typography, Button, Loader, Alert, and Datepicker\n-   _jest-fetch-mock_ for mocking the native javascript fetch api. Unit test are using jest.\n\nBackend:\n\n-   _Netlify_ stateless functions with typescript.  \n    Currently there is 2 functions:\n\n    -   `./netlify/functions/dashboard-data-api/dashboard-data-api.ts` is the simple GET API, called at every launch and when we click on \"Filter\"\n    -   `./netlify/functions/populate-data-api/populate-data-api.ts` erasing and re-generating a new set of random datas, called once and can be called one again by clicking \"Generate new datas\" in the bottom right corner of the footer\n\n-   _MongoDB_ free tier cluster for storing the set of datas.\n-   For playing with dates I used _date-fns_ which is more lightweight and functionnal than momentjs (it returns a Date clone object everytime)\n\n## Running the project\n\nThis project have been created with node LTS v16.14.0 and npm 8.3.1\n\nWith these pre-requish, here are the steps:\n\n1. netlify cli need to be installed globally `npm install netlify-cli -g`\n2. Unzip or clone the project, and run into the project folder `npm i`\n3. A `.env` file need to be added manually at the root of the repository, with this content: `MONGO_DB_PASSWORD=\u003cyour mongo db password\u003e`\n4. And now for running both client and server the command is: `netlify dev`\n\nThe server should now be available at http://localhost:8888\n\n## Running the tests\n\nThe units test can be run with\n\n`npm test`\n\nThe tests are also running on every push with github action:  \n`./.github/workflows/on-push-master.yml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfa1234%2Freport-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfa1234%2Freport-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfa1234%2Freport-dashboard/lists"}