{"id":21241189,"url":"https://github.com/icyjoseph/vcc-frontend-code-test","last_synced_at":"2026-04-20T05:02:08.266Z","repository":{"id":179967963,"uuid":"664384342","full_name":"icyJoseph/vcc-frontend-code-test","owner":"icyJoseph","description":"VCC frontend code test","archived":false,"fork":false,"pushed_at":"2023-07-09T20:16:52.000Z","size":1436,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T03:44:41.390Z","etag":null,"topics":["nextjs","react","react-ssr","react-testing-library"],"latest_commit_sha":null,"homepage":"https://vcc-frontend.vercel.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/icyJoseph.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":"2023-07-09T20:14:53.000Z","updated_at":"2023-07-09T20:17:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3195a96-ed2b-40aa-b156-5ff0c11e9399","html_url":"https://github.com/icyJoseph/vcc-frontend-code-test","commit_stats":null,"previous_names":["icyjoseph/vcc-frontend-code-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icyJoseph/vcc-frontend-code-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fvcc-frontend-code-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fvcc-frontend-code-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fvcc-frontend-code-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fvcc-frontend-code-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icyJoseph","download_url":"https://codeload.github.com/icyJoseph/vcc-frontend-code-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fvcc-frontend-code-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32033717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["nextjs","react","react-ssr","react-testing-library"],"created_at":"2024-11-21T00:54:56.380Z","updated_at":"2026-04-20T05:02:08.247Z","avatar_url":"https://github.com/icyJoseph.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Volvo Cars (Global Online Digital)\n\n\u003e This is a solution repository\n\n## Front-end coding test (React)\n\nOur team's designer has come up with a new design to show our latest and greatest recharge cars on the website.\n\nHere is how the design look like for desktop and mobile (files are stored under `docs` folder)\n\n### Desktop\n\n![ProductListDesktop](./docs/ProductList-Desktop.png)\n\n### Mobile\n\n![ProductListDesktop](./docs/ProductList-Mobile.png)\n\nThe data required to render the design is under `public/api/cars.json` folder. You need to fetch the data from the client side and render it in the browser. The data looks like this:\n\n```json\n[\n  {\n    \"id\": \"xc90-recharge\",\n    \"modelName\": \"XC90 Recharge\",\n    \"bodyType\": \"suv\",\n    \"modelType\": \"plug-in hybrid\",\n    \"imageUrl\": \"/images/xc90_recharge.jpg\"\n  }\n]\n```\n\nThe product owner is telling you that you can generate the links to the learn and shop pages of each car by concatenating the `id` of the car to the learn (`/learn/`) and shop (`/shop/`) urls.\n\nTwo extra SVG icons are also provided by our designer which are stored under `docs` folder.\n\n## Requirements\n\n- The project is bootstraped using [Next.js](https://nextjs.org/).\n- Browser support is modern ever-green browsers.\n- Implement this design using React and Typescript.\n- Accessibility is important.\n- Code Structure and reusablity is important.\n\n## Bonus Points:\n\n- If you use our design system component library, [VCC-UI](https://vcc-ui.vercel.app/)\n- If you add a filter bar on the top to filter cars by `bodyType`\n\n## Running the project\n\n- Developed and tested with Node 16 and 18\n- Used `yarn@1.22.19`\n- For dev mode, `yarn` and `yarn dev` are enough\n- For production make sure you have an `.env` file with `CARS_DB_PATH`, as shown in `.env.example`\n- Run tests with `yarn test`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyjoseph%2Fvcc-frontend-code-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficyjoseph%2Fvcc-frontend-code-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyjoseph%2Fvcc-frontend-code-test/lists"}