{"id":20288009,"url":"https://github.com/dopecodez/museum-stats","last_synced_at":"2026-04-15T09:31:41.715Z","repository":{"id":117103022,"uuid":"354513181","full_name":"dopecodez/museum-stats","owner":"dopecodez","description":"A simple express server to get stats from museum visitors","archived":false,"fork":false,"pushed_at":"2021-04-11T08:05:15.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T05:18:59.666Z","etag":null,"topics":["api","ava","express","statistics","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dopecodez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-04-04T10:18:13.000Z","updated_at":"2021-04-11T08:05:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"d68900ff-a10b-4eb9-9288-2144869c8eac","html_url":"https://github.com/dopecodez/museum-stats","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dopecodez/museum-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopecodez%2Fmuseum-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopecodez%2Fmuseum-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopecodez%2Fmuseum-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopecodez%2Fmuseum-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dopecodez","download_url":"https://codeload.github.com/dopecodez/museum-stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopecodez%2Fmuseum-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31834520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T07:17:56.427Z","status":"ssl_error","status_checked_at":"2026-04-15T07:17:30.007Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","ava","express","statistics","typescript"],"created_at":"2024-11-14T14:43:41.360Z","updated_at":"2026-04-15T09:31:41.694Z","avatar_url":"https://github.com/dopecodez.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# museum-stats\n\nA express server which returns the processed data for https://data.lacity.org/Arts-Culture/Museum-Visitors/trxm-jn3c based on input query of `date` in milliseconds.\n\nIf you have any doubts or clarifications on this code, hit me up and I'll try to help you guys out!\n\n## Highlights\n\n- [Getting Started](#getting-started)\n    - [Prerequisites](#prerequisites)\n    - [Installing](#installing)\n- [Usage](#Usage)\n- [Contributing](#contributing)\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. \n\n### Prerequisites\n\nYou'll need to install NodeJS for running this application. I'm on Node v12.16.3, you can find it at:\n```\nhttps://nodejs.org/en/download/\n```\nYou'll also need a code editor to see how the code goes. Use whichever editor which has JS support, I use Visual Studio Code on \nWindows 10.\n\n### Installing\n\nSimple steps to get the application running. Clone the project, open the terminal to the folder containing museum-stats and just type:\n```\nnpm install\n```\nThis should install all the dependencies within package.json and package-lock.json and create your node modules.\n\nThis is a `TypeScript` project, so if you want to see the build happening.\n\n```\nnpm run build\n```\n\nAfter the previous command completes successfully, open the terminal and type:\n```\nnpm start\n```\nThis should get the program up and running on the default port.\n\n**All environment variables can be changed in the `.env` file provided.**\n\nTo run the tests, all you need to do is, type:\n\n```\nnpm test\n```\n\n## Usage\n\nOnce the server is up and running, you can call the endpoint with server_ip/api/visitors. By default, the port should be 3000. On your local machine, server_ip would be http://localhost:3000/api/visitors (if you haven't changed the default port). This is a get request which expects two params : `date` and `ignore` as such:\n```\n  http://localhost:3000/api/visitors?date=1404198000000\u0026ignore=avila_adobe\n```\n\n- `date` - time in milliseconds. This is required.\n- `ignore` - museum to ignore. This is optional.\n\n## Contributing\n\nBefore opening a pull request please make sure your changes follow the\n[contribution guidelines][1].\n\n[1]: https://github.com/dopecodez/pingman/blob/master/CONTRIBUTING.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdopecodez%2Fmuseum-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdopecodez%2Fmuseum-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdopecodez%2Fmuseum-stats/lists"}