{"id":14989756,"url":"https://github.com/asing1001/movierater","last_synced_at":"2026-01-12T02:42:14.031Z","repository":{"id":10621790,"uuid":"66386873","full_name":"Asing1001/MovieRater","owner":"Asing1001","description":"A useful website for finding movie's rating in Chinese and English. By crawling Yahoo, Ptt, IMDB.","archived":false,"fork":false,"pushed_at":"2024-06-02T23:26:42.000Z","size":23249,"stargazers_count":21,"open_issues_count":35,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T20:51:14.396Z","etag":null,"topics":["apollo-client","chai","crawler","graphql","material-ui","mocha","mongodb","movies","nodejs","reactjs","redis","server-side-rendering","service-worker","sinon","typescript"],"latest_commit_sha":null,"homepage":"https://www.mvrater.com/","language":"TypeScript","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/Asing1001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-08-23T17:06:49.000Z","updated_at":"2024-08-13T14:38:19.000Z","dependencies_parsed_at":"2023-10-28T10:21:04.816Z","dependency_job_id":"f3a7f64d-df18-40f4-9a41-50dc72a09ff8","html_url":"https://github.com/Asing1001/MovieRater","commit_stats":null,"previous_names":["asing1001/movierater","asing1001/movierater.react"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asing1001%2FMovieRater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asing1001%2FMovieRater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asing1001%2FMovieRater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asing1001%2FMovieRater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asing1001","download_url":"https://codeload.github.com/Asing1001/MovieRater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501323,"owners_count":21114652,"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":["apollo-client","chai","crawler","graphql","material-ui","mocha","mongodb","movies","nodejs","reactjs","redis","server-side-rendering","service-worker","sinon","typescript"],"created_at":"2024-09-24T14:18:52.333Z","updated_at":"2026-01-12T02:42:14.025Z","avatar_url":"https://github.com/Asing1001.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MovieRater\n\n[![GitHub Actions status](https://github.com/Asing1001/movieRater.React/actions/workflows/build.yml/badge.svg)](https://github.com/Asing1001/movieRater.React/actions)\n[![codecov](https://codecov.io/gh/Asing1001/movieRater.React/branch/master/graph/badge.svg)](https://codecov.io/gh/Asing1001/movieRater.React)  \nCrawl and merge ptt/imdb/yahoo movie data, help easy search high rating movie in Chinese and English.\n![](https://asing1001.github.io/portfolio/index/movierater.jpg)\n\n## Quick Start\n\n- `nvm use`\n- `npm install -g yarn`\n- `docker compose up`\n- `yarn`\n- `yarn build \u0026\u0026 yarn start` then open http://localhost:3003\n\n## Get the latest Data locally\n\n0. `yarn setup`\n1. `yarn mergedata`\n\n## Developement\n\nPlease open three command line:  \nFor UI developement, server run at http://localhost:3004:\n\n0. `docker compose up`\n1. `yarn start`\n2. `yarn webpack`\n\nFor server developement, server run at http://localhost:3003:\n\n0. `docker compose up`\n1. `yarn tsc:w`\n2. `TZ=Asia/Taipei yarn nodemon`\n\n## Test\n\n`yarn test`\n\n### Debug Test in Vscode\n\n1. `yarn tsc:w`\n2. Edit `Debug Test` section in [./.vscode/launch.json](./.vscode/launch.json), \n   for Example, if you want to debug `netflixCrawler.ts` file, modify the `args` as the following:\n\n```json\n\"name\": \"Debug Test\",\n....\n\"args\": [\n    \"dist/test/netflixCrawler.test.js\",\n    \"--no-timeouts\"\n],\n```\n\n3. Set the breakpoint and click the `Debug Test` in Vscode `Run and Debug`\n![debug test](https://user-images.githubusercontent.com/6785698/119269492-81f69000-bc2a-11eb-9660-6fd62a8e7b35.png)\n\n## Application flow\n\n1. Server start\n2. Load data in cache, include recent movie list, all merged data\n3. Start scheduler for crawl yahoo/imdb/ptt\n![system diagram](https://github.com/Asing1001/system-diagrams/blob/master/mvrater.jpg?raw=true)\n\n## Crawler\n\n- To manually run a single crawler you could reference firstTimeSetup.ts, and run `yarn setup`  \n\n## Reference\n\nThe project UI is using [Material-UI](https://github.com/callemall/material-ui)\n\n## Deployment\n\n### Terraform\n\n```bash\ngcloud auth application-default login\ncd terraform\nterraform init\nterraform plan\n```\n\n### Heroku\n\nIt is automatically built and deploy on heroku.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasing1001%2Fmovierater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasing1001%2Fmovierater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasing1001%2Fmovierater/lists"}