{"id":17930920,"url":"https://github.com/lovasoa/dataiku-exercise","last_synced_at":"2026-04-18T04:02:10.913Z","repository":{"id":66344140,"uuid":"84255090","full_name":"lovasoa/dataiku-exercise","owner":"lovasoa","description":"US census visualization web application. Given as an exercise by dataiku after a job interview. I didn't get the job. ","archived":false,"fork":false,"pushed_at":"2017-03-08T00:10:55.000Z","size":11295,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-01T16:19:40.555Z","etag":null,"topics":["elm","exercise","job-interviews","nodejs","statistics","webapp"],"latest_commit_sha":null,"homepage":null,"language":"Elm","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/lovasoa.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":"2017-03-07T23:05:09.000Z","updated_at":"2020-12-06T18:49:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"c20ad376-36e2-4920-9a45-0f532ccfa62e","html_url":"https://github.com/lovasoa/dataiku-exercise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lovasoa/dataiku-exercise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fdataiku-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fdataiku-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fdataiku-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fdataiku-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasoa","download_url":"https://codeload.github.com/lovasoa/dataiku-exercise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fdataiku-exercise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["elm","exercise","job-interviews","nodejs","statistics","webapp"],"created_at":"2024-10-28T21:18:36.001Z","updated_at":"2026-04-18T04:02:10.895Z","avatar_url":"https://github.com/lovasoa.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# US-census visualisation\n\nThis is a small single-page web app to visualize US census data\n\n## Project status\nThe project is currently in a working state,\nwaiting to be reviewed.\n\n## Demo\n\nA demonstration server is running on\nhttp://visualize-census.eu-2.evennode.com/.\n\n## Technological stack\n\n#### Frontend\n\n![App screenshot](./exercise/screenshot.png)\n\nThe frontend is very simple: it is composed of\na single page, that allows the user to choose which\ndimension of the data to analyze, then queries the server,\nand displays the results in a table.\n\nIt is written in [Elm](http://elm-lang.org/).\n\n#### Backend\n##### Application\nIt is a simple layer that serves the static assets,\nand answers to API queries by fetching data in the\ndatabase.\n\nIt uses [NodeJS](https://nodejs.org/en/)\nwith [express](https://expressjs.com/).\n\n##### Database\nThe original database file schema was quite\ninefficient for the kind of queries we have to do.\n\nA python script is provided (`src/backend/import-db.py`)\nthat takes a database in the old format, and\ngenerates a new optimized database in\n`src/backend/census.db`\n\nFor the sake of simplicity,\nthe new database uses [SQLite](http://sqlite.org/) too.\nPerformance in a single user context is currently very good.\nHowever, migrating to another RDMS\nmight be wanted as the data volume grows.\n\n## How to use\n\n#### Dependencies\nEnsure you have node (\u003e=6) and python (\u003e=3.5) installed.\n\nIn a debian-based distribution, you can install them with\n\n```\nsudo apt install nodejs python3\n```\n\n#### Launch the server\n\nA launch script is provided, that creates the optimized database,\ncompiles Elm files to javascript, and launches the server.\nLaunch it with:\n\n```\nnpm start\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Fdataiku-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasoa%2Fdataiku-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Fdataiku-exercise/lists"}