{"id":13474923,"url":"https://github.com/hernanif1/react-native-boilerplate","last_synced_at":"2025-03-26T22:31:33.845Z","repository":{"id":154942436,"uuid":"148440450","full_name":"hernanif1/react-native-boilerplate","owner":"hernanif1","description":" This opinionated boilerplate was born because I always need to configure the same generic libs in order let my app production-ready.","archived":true,"fork":false,"pushed_at":"2018-09-26T06:56:33.000Z","size":455,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T08:51:07.296Z","etag":null,"topics":["boilerplate","bootstrap","commitizen","create-react-native-app","eslint","flowtype","husky","javascript","jest","prettier","react","react-native","reactjs","sentry"],"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/hernanif1.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}},"created_at":"2018-09-12T07:33:32.000Z","updated_at":"2023-01-28T17:42:38.000Z","dependencies_parsed_at":"2024-01-16T06:12:18.980Z","dependency_job_id":"ded58ffe-cc29-4cfb-a570-233e8c34b71e","html_url":"https://github.com/hernanif1/react-native-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanif1%2Freact-native-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanif1%2Freact-native-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanif1%2Freact-native-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanif1%2Freact-native-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hernanif1","download_url":"https://codeload.github.com/hernanif1/react-native-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245747823,"owners_count":20665873,"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":["boilerplate","bootstrap","commitizen","create-react-native-app","eslint","flowtype","husky","javascript","jest","prettier","react","react-native","reactjs","sentry"],"created_at":"2024-07-31T16:01:15.980Z","updated_at":"2025-03-26T22:31:31.181Z","avatar_url":"https://github.com/hernanif1.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Boilerplate React-Native\n\nThis opinionated boilerplate was born because I always need to configure the same generic libs in order let my app ready-to-production.\n\nThis project was bootstrapped with [Create React Native App](https://github.com/react-community/create-react-native-app).\n\n### Enviroment\n\n1. Install the Mac Iphone Simulator\n2. Geny motion for Android\n3. Node (8+)\n\n### Commands\n\nRun the command bellow:\n\n```bash\nnpm install\n```\n\n```bash\nnpm start\n```\n\n```bash\nnpm test\n```\n\n### Commits\n\nUse only the command bellow to create commit\n\n```bash\nnpm run commit\n```\n\n### Sentry\nCreate a sentry account and put your ID [here](https://github.com/hernanif1/react-native-boilerplate/blob/d3f218fadf09e4eec014829af5455193a0c34c93/src/config/sentry.js#L4)\n\n\n### Sonnar\n\n1. Start the docker container in your machine with the following command\n`docker run -d --name sonarqubeLocal -p 9001:9000 -p 9092:9092 arturbdr/sonarqube-pluggins:6.7.1.1-lts`\nThis command will download the image and start a docker container in your machine and bind the host ports: 9001 and 9092 to the container port 9000 and 9092 respectively.\n2. After the container is started, you can access it in the browser in [local sonar docker](http://localhost:9001/)\n3. Publish the project to this container with the command `gulp sonar`\n4. Check the results in [local sonar docker](http://localhost:9001/)\n\nAll the sonar configuration are in the file `sonar-project.properties`\n\n### Features\n\n- [x] react-navigate - main lib (with create-react-native-app)\n- [x] eslint - to standarlize the project\n- [x] commitzen - to create nice commits\n- [x] prettier - to standarlize the code\n- [x] flow-type - to create static types\n- [x] husky - for prevent commit with errors (of lint, tests, flow)\n- [x] saga - lib to fetch async data\n- [x] jestSetup - to configurate react-native with jest\n- [x] enzyme - to test components\n- [x] jsdom - to simulate window and globals\n- [x] I18n - to translate texts\n- [x] recompose - to compose HOCs\n- [x] apisauce - to fetch external datas\n- [x] sentry - to log erros\n- [x] file api module (to fetch data) - to configurate apisauce and services\n- [x] initial folders (services/ components) - to define the architeture standard\n- [x] environment variables - to fetch external datas in diferent enviroments\n- [x] icon - to setup home icon\n- [x] splashscreen - to setup inaital screen before open the app\n- [x] remove @FIXME\n- [x] example of unit test - to integrate test since the begin\n- [x] Header example - to let easier to implement header throught props\n- [x] Styled components with jest - to let easier to implement nested css\n- [ ] nativeBase - to use standarlized components\n\n### TODO\n\n- [ ] build ci (with fasltlane or expo)\n- [ ] try immutable - to let transformation data less verbose\n- [ ] example of reselect lib - to optimize data flow\n- [ ] example of integration tests - to integrate test since the begin\n- [ ] example of e2e detox (choose screenplay or pageObject)- to integrate e2e since the begin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhernanif1%2Freact-native-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhernanif1%2Freact-native-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhernanif1%2Freact-native-boilerplate/lists"}