{"id":22868170,"url":"https://github.com/liftitapp/react-native-liftit-boilerplate","last_synced_at":"2025-05-05T19:41:44.337Z","repository":{"id":87210304,"uuid":"93674121","full_name":"Liftitapp/react-native-liftit-boilerplate","owner":"Liftitapp","description":"react-native boilerplate with react-redux, redux-saga, flow and jest","archived":false,"fork":false,"pushed_at":"2017-07-10T20:45:02.000Z","size":1732,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-30T23:05:42.349Z","etag":null,"topics":["apisauce","eslint","flow","liftit","react","react-native","react-redux","react-saga","storybook"],"latest_commit_sha":null,"homepage":"https://liftit.co","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/Liftitapp.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":"2017-06-07T19:56:09.000Z","updated_at":"2020-04-30T20:50:13.000Z","dependencies_parsed_at":"2023-04-13T18:03:26.128Z","dependency_job_id":null,"html_url":"https://github.com/Liftitapp/react-native-liftit-boilerplate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liftitapp%2Freact-native-liftit-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liftitapp%2Freact-native-liftit-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liftitapp%2Freact-native-liftit-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liftitapp%2Freact-native-liftit-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Liftitapp","download_url":"https://codeload.github.com/Liftitapp/react-native-liftit-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252563818,"owners_count":21768525,"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":["apisauce","eslint","flow","liftit","react","react-native","react-redux","react-saga","storybook"],"created_at":"2024-12-13T12:32:03.203Z","updated_at":"2025-05-05T19:41:44.330Z","avatar_url":"https://github.com/Liftitapp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n   \n   #  ReactNativeLiftitBoilerplate\n   ----\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) [![Build Status](https://semaphoreci.com/api/v1/liftit/react-native-liftit-boilerplate/branches/develop/shields_badge.svg)](https://semaphoreci.com/liftit/react-native-liftit-boilerplate) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/3383bed845e84ecbafbdc8ba20e6c55e)](https://www.codacy.com/app/Liftit/react-native-liftit-boilerplate?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=Liftitapp/react-native-liftit-boilerplate\u0026amp;utm_campaign=Badge_Grade)\n\n🔥reactnative-steroids-boilerplate🔥\n\nOperating systems supported \u003e= Android 4.4 (API 19)\n\n## Setup\n\n**Step 1:** `git clone https://github.com/Liftitapp/react-native-liftit-boilerplate.git \u003cYourProjectName\u003e`\n\n**Step 2:** `cd \u003cYourProjectName\u003e \u0026\u0026 npm install`\n\n## Run app\n\n1. `cd \u003cYourProjectName\u003e`\n2. Create a `.env` file with the following variables:\n```\nAPP_VERSION_CODE /*Version code of your Android app ie. 0.0.1*/\nAPP_VERSION_NAME /*Version name of your Android app ie. v0.1-beta*/\nGITHUB_API_URL=https://api.github.com/\n```\n3. Run Build for Android (iOS following soon)\n    * for Android\n      * Run your preffer Android emulator or connect your phone with the Debugging Mode enabled\n      * `npm run start`\n      * On another console: `react-native run-android`\n\n## Directory Structure\n * [android](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/android)\n * [app](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app)\n    * [components](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/components)\n    * [config](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/config)\n    * [containers](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/containers)\n    * [fixtures](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/fixtures)\n    * [i18n](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/i18n)\n    * [images](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/images)\n    * [lib](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/lib)\n    * [navigation](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/navigation)\n    * [redux](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/redux)\n    * [sagas](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/sagas)\n    * [screens](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/screens)\n    * [services](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/services)\n    * [themes](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/themes)\n    * [transforms](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/app/transforms)\n * [ignite](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/ignite)\n * [ios](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/ios)\n * [storybook](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/storybook)\n * [tests](https://github.com/Liftitapp/react-native-liftit-boilerplate/tree/master/tests)\n\n\n## Features\n\n| Feature | Summary |\n| --- | --- |\n| [Ignite](https://github.com/infinitered/ignite) | The project was generated with this tool|\n| [DotEnv](https://www.npmjs.com/package/dotenv) | Environment variables for Javascript files. - [+ info](#dotenv)|\n| [ReactNativeConfig](https://github.com/luggit/react-native-config) | Environment vars for React components and Android (*.xml, *.gradle, *.java) files. - [+ info](#react-native-config) |\n| [ESLint](http://eslint.org) | Linter used on the project. - [+ info](#eslint)|\n| [i18n](https://github.com/AlexanderZaytsev/react-native-i18n) | Support to i18n. - [+ info](#i18n)|\n| [Jest](https://facebook.github.io/jest/) | Testing (with coverage). - [+ info](#jest)|\n| [Codacy](https://www.codacy.com) | Code review an analytics. - [+ info](#codacy)|\n| [Storybook](https://storybook.js.org) | Testing for React-Native UI components. - [+ info](#storybook)|\n| [Flow](https://flow.org) | Type checker for Javascript (with flowcheck). - [+ info](#flow)|\n| [Sentry](https://sentry.io/welcome/) | Realtime error tracking. - [+ info](#sentry)|\n| [NewRelic](https://newrelic.com/mobile-monitoring) | App monitoring. - [+ info](#newrelic)|\n| [Reactotron](https://github.com/infinitered/reactotron) | Debug tool for React Native apps. - [+ info](#reactotron) |\n| | |\n| [Redux](https://github.com/reactjs/react-redux) | A predictable state container - Helping you write applications that behave consistently and run in different environments. |\n| [Redux-saga](https://github.com/redux-saga/redux-saga) | Is a library that aims to make side effects (i.e. asynchronous things like data fetching and impure things like accessing the browser cache) in React/Redux applications easier and better. |\n| [Apisauce](https://github.com/skellock/apisauce) | Great form to communicate with APIs. |\n| [Gulp](http://gulpjs.com) | Toolkit for automating painful or time-consuming tasks in your development workflow, so you can stop messing around and build something. |\n\n## Configuration\n### **DOTENV**\nThis module reads `.env` files from the root folder, stores their variables in a `process.env` object.\n\n#### How to use\n```\nrequire('dotenv').config()\nconsole.log(process.env.APP_VERSION_CODE)\n```\nUse this way to access to the enviroment variables from outside the react-native application (eg. On the tests folder, or on the gulp file)\n### **REACT-NATIVE-CONFIG**\nThis module is used to expose configuration variables to your javascript code inside the react-native application.\n#### How to use\n  Android\n\n  * **Java files** - Through the BuildConfig object.\n  ```\n  public HttpURLConnection getApiClient() {\n      URL url = new URL(BuildConfig.API_URL);\n      // ...\n  }\n  ```\n\n  * **Gradle configuration files** - Through the project.env.get() function.\n  ```\n  defaultConfig {\n      applicationId project.env.get(\"APP_ID\")\n  }\n  ```\n\n  * **XML configuration files** (eg. `AndroidManifest.xml`)- Through the @string annotation.\n  ```\n  \u003cmeta-data\n    android:name=\"com.google.android.geo.API_KEY\"\n    android:value=\"@string/GOOGLE_MAPS_API_KEY\" /\u003e\n  ```\n### **ESLINT**\nLinter used to check syntax errors on the code, it uses a config file called `.eslintrc` stored on the root folder.\n\nThe `.eslintignore` (also stored on the root folder) is used to ignore specific folders or files, like a .gitignore file \n#### How to use\n**Run on the console:** `npm run superlint`\n### **I18N**\nInternationalization for the project. The languages are stored on `app/i18n/languages`, on `.json` files, and must be exported on `app/i18n/index.js` \n#### How to use\n```\nimport I18n from 'app/i18n'\n{ I18n.t('greetings') }\n```\n### **JEST**\nThis project uses Jest for unit testing. All tests live on the `tests` folder\n#### How to use\n**Run on the console:** `npm run test`\n\nIt creates a Coverage folder, which tell you the percentage of your code which is tested and is used to report it to Codacy \n### **CODACY**\nCodacy check code style, security, duplication, complexity and quality on every commit. You must integrate it with your repository.\n\n**Coverage** - To send to Codacy the coverage info created by Jest, there are a Gulp script (`gulpfile.js`) that use the \"PROJECT_TOKEN\" of your Codacy project. This \"PROJECT_TOKEN\" must be setted on your `.env` file like `CODACY_SECRET_TOKEN` \n\n#### How to use\n**Run on the console:** `npm run gulp`\n\n(Coverage folder must exist)\n### **STORYBOOK**\nWith this, you can test all your UI components on realtime.\n#### How to use\n* Run your preffer Android emulator or connect your phone with the Debugging Mode enabled\n* **Run on the console:** `npm run storybook`\n* Visit `localhost:7007` on your browser\n### **FLOW**\nIt check the typed of all your Javascript code, and uses a config file called `.flowconfig` stored on the root folder.\n\nYou must indicate which files want to be checked with the `@flow` annotation on top of your files.\n#### How to use\n**Run on the console:** `npm run flow`\n\nIf you use VSCode editor, it's recommended install \"Flow Language Support\" extension. \n### **SENTRY**\nThis project is configurated to report all its errors on production to be tracked by Sentry.\n#### How to use\nOn your `.env` file, must exist this vars, according to your Sentry project information:\n```\nSENTRY_DSN\nSENTRY_URL\nSENTRY_ORG\nSENTRY_PROJECT\n```\nOn `app/config/index.js:18` is enabled the use of this system.\n### **NEWRELIC**\nThis project is configurated to be monitored by New Relic.\n#### How to use\nAdd the following NewRelic variable on the `.env` file:\n```\nNEWRELIC_ANDROID_TOKEN\n```\nEnable `app/config/index.js:19` to be used in the system.\n### **REACTOTRON**\nThe functionality of this app can be inspectioned by Reactotron.\n#### How to use\n* [Install Reactotron](https://github.com/infinitered/reactotron/blob/master/docs/installing.md)\n* Open the Reactotron app\n* Run your preffer Android emulator or connect your phone with the Debugging Mode enabled\n* **Run on the console:** `npm run reactotron:server`\n\n## :closed_lock_with_key: Secrets\n\nThis project uses [react-native-config](#react-native-config) to expose config variables to your code in React Native app, and [dotenv](#dotenv) to expose them outside the React Native app. You must store API keys and other sensitive information in a `.env` file, on the root folder.\n\nThe minimum variables required by this project are:\n\n```\nAPP_VERSION_CODE /*Version code of your Android app eg. 0.0.1*/\nAPP_VERSION_NAME /*Version name of your Android app eg. v0.1-beta*/\nGITHUB_API_URL=https://api.github.com/\n```\n\nThe `.env` file is ignored by git keeping those secrets out of your repository.\n\nMade with ❤️ by [Liftit](https://liftit.co) - Developed by [David Quinto](https://github.com/davidquinto)\n\n## Missing work\n1. Improve the README.md of Sagas, Redux, Storybooks and Screens.\n2. Change README's system to [GitHub Wiki](https://help.github.com/articles/about-github-wikis/).\n\n## Contributing\nIn lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.\n\n## License\nMIT ©\n\nCopyright 2017 [Liftit](https://liftit.co)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliftitapp%2Freact-native-liftit-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliftitapp%2Freact-native-liftit-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliftitapp%2Freact-native-liftit-boilerplate/lists"}