{"id":21581230,"url":"https://github.com/ezy/spec-react","last_synced_at":"2026-04-08T22:32:23.780Z","repository":{"id":83684559,"uuid":"252082748","full_name":"ezy/spec-react","owner":"ezy","description":"(o ^ ^)o || A ReactJS app example using best practice methodology as @2020-04-02","archived":false,"fork":false,"pushed_at":"2020-08-14T20:25:03.000Z","size":414,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T08:13:54.883Z","etag":null,"topics":["airbnb","airbnb-eslint","enzyme","eslint","example","example-project","jest","material-ui","prettier","prettier-eslint","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ezy.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":"2020-04-01T05:42:11.000Z","updated_at":"2020-08-14T20:25:06.000Z","dependencies_parsed_at":"2023-07-01T11:30:19.940Z","dependency_job_id":null,"html_url":"https://github.com/ezy/spec-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ezy/spec-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezy%2Fspec-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezy%2Fspec-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezy%2Fspec-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezy%2Fspec-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezy","download_url":"https://codeload.github.com/ezy/spec-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezy%2Fspec-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31577444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["airbnb","airbnb-eslint","enzyme","eslint","example","example-project","jest","material-ui","prettier","prettier-eslint","reactjs"],"created_at":"2024-11-24T14:11:44.655Z","updated_at":"2026-04-08T22:32:23.765Z","avatar_url":"https://github.com/ezy.png","language":"JavaScript","readme":"# Spec app for jsonplaceholder.typicode.com\n\nThis is a ReactJS app using the blog api from typicode, built to show my approach to react dev. It includes the following methodolgy:\n\n- Functional programming as per the current direction of React\n- Tests setup with Jest and Enzyme\n- A robust scalable folder structure\n- Linting with eslint, prettier and airbnb\n\n## Build time\n\nThe entire app was built in 2 coding sessions for a total time of around 2.5 hours.\n\n## Setup methodology\n\nCreated with the standard Create React App - [see a shell script for doing similar with typescript in one hit here](https://gist.github.com/ezy/107c74c014251f0c8f2c2b0bea460d58)\n\n## Available Scripts\n\nThe standard create react scripts are availavle in `package.json` for doing all the usual basics.\n\nThere are added scripts for the following:\n\n- lint: lint\n- format: lint format\n- isready: building when ready\n\n## Linting\n\nLinting is setup to ensure code quality and consistency using eslint, prettier and airbnb style guide.\n\n## Components\n\nAll components reside in `src/components`.\n\n## Helpers\n\nAll helpers reside in `src/helpers`. If there was a requirement for any services (eg. extracting fetch into a single http request service) they would be located in `src/services`.\n\n## Tests\n\nAll tests reside in `src/__tests__`. They're an example rather than being exhaustive to show a few different scenarios.\n\n## Things I would do for prod\n\n- Use typescript (.tsx, .ts)\n- Use `docker-compose` for running any backend and db\n- Implement a CI/CD solution\n- Extract fetch into an http service for GET, PUT, POST, PATCH, DELETE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezy%2Fspec-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezy%2Fspec-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezy%2Fspec-react/lists"}