Always up-to-date React Native scaffolding
Modular and well-documented structure for application code
Redux and ImmutableJS for safe and Reasonaboutable?? state management
Redux Loop for Elm-style controlled side effects
Redux-managed Navigators for Stack-based and Tabbed navigation with NavigationExperimental
Disk-persisted application state caching for offline support and snappy startup performance
Clean and testable service layer for interacting with RESTful APIs
?? Sample app to show how to wire it all together
? JSON Web Token authentication
? Multi-environment configuration (dev, staging, production) for iOS and Android
? Built-in error handling and customizable error screens
總是最新的本地腳手架的反應(yīng)。
為應(yīng)用程序代碼模塊化和證據(jù)確鑿的結(jié)構(gòu)蛋欣。
回來的,ImmutableJS安全和Reasonaboutable??狀態(tài)管理映跟。
控制回路為Elm-style回來的副作用搔耕。
Redux-managed航海家與NavigationExperimental基于堆棧和選項卡導(dǎo)航育灸。
Disk-persisted應(yīng)用程序狀態(tài)為離線緩存支持和時髦的啟動性能滑凉。
清潔和可測試的服務(wù)層與RESTful api進行交互淹遵。
??示例應(yīng)用程序展示了如何連接在一起咽安。
?JSON Web令牌認證。
?試件進行配置(dev集漾、分期切黔、生產(chǎn))為iOS和Android。
?內(nèi)置的錯誤處理和可定制的錯誤屏幕具篇。
Testing Setup.
Mocha for unit testing application code.
Enzyme and fully mocked React Native for unit testing UI components
Istanbul code coverage.
Utilities for end-to-end integration testing Redux state, including side effects and asynchronous actions.
測試設(shè)置纬霞。
摩卡的單元測試應(yīng)用程序代碼。
酶和完全嘲笑本地反應(yīng)單元測試UI組件伊斯坦布爾的代碼覆蓋率驱显。
公用事業(yè)的端到端集成測試回來的狀態(tài),包括副作用和異步操作诗芜。
Development & Deployment Infrastructure.
Auth0 for ready-to-use login and signup screens, user authentication and identity management.
Bitrise.io configurations for Continuous Integration and beta app distribution.
?? Google Tag Manager analytics.
? Microsoft Code Push for Continuous Deployment and instant app updates.
開發(fā)和部署的基礎(chǔ)設(shè)施。
Auth0對即食登錄和注冊界面,用戶身份驗證和身份管理埃疫。
Bitrise.io配置持續(xù)集成和測試應(yīng)用程序分布伏恐。
??谷歌標記經(jīng)理分析。
?微軟代碼推動持續(xù)部署和即時應(yīng)用程序更新栓霜。
Roadmap
TODO Crash reporting
TODO Android and iOS UI Testing with Calaba.sh?
TODO Feature flags?
路線圖翠桦。
TODO崩潰報告。
TODO Android和iOS和Calaba.sh UI測試嗎?胳蛮。
TODO特性標志?销凑。
Getting started
To build your own app on top of the Starter Kit, fork or mirror this repository. Because you can't rename a fork, for serious use we recommend mirroring using these instructions. To contribute to Starter Kit development or just playing around, forking is the way to go.
First, give your application a name by running ./support/rename.sh YourAppName.
Once you have the code downloaded, follow the Setup guide to get started.
開始
構(gòu)建您自己的應(yīng)用程序上的Starter Kit,叉或者鏡子這個庫。
因為你不能重命名一個叉,嚴重使用我們推薦使用這些指令鏡像仅炊。為Starter Kit開發(fā)或玩耍,分叉的路要走斗幼。
首先,給您的應(yīng)用程序名稱通過運行。./support/rename.sh YourAppName抚垄。
一旦你已經(jīng)下載的代碼,按照安裝指南開始蜕窿。
Development workflow
After you have set up the project using above instructions, you can use your favorite IDE or text editor to write code, and run the application from the command line. Turn on React Native hot module reloading in the app developer menu to update your application as you code.
To learn how to structure your application and use the Redux application architecture, read the Architecture guide for more details.
Start the application in iOS simulator
$ react-native run-ios
Start the application in Android simulator
(If using the stock emulator, the emulator must be running)
$ react-native run-android
Run unit tests
$ npm test
Run tests every time code changes
$ npm run test:watch
Generate code coverage report
$ npm run coverage
Read the Testing guide for more information about writing tests.
開發(fā)工作流程
設(shè)置項目后使用上面的指令,您可以使用您最喜愛的IDE或文本編輯器來編寫代碼,并從命令行運行應(yīng)用程序。打開本地?zé)岱磻?yīng)模塊重新加載應(yīng)用開發(fā)者菜單更新您的應(yīng)用程序代碼呆馁。
學(xué)習(xí)如何構(gòu)建您的應(yīng)用程序和使用Redux應(yīng)用程序架構(gòu),架構(gòu)指南讀更多的細節(jié)桐经。
Deployment
Read the Deployment guide to learn how to deploy the application to test devices, app stores, and how to use Code Push to push updates to your users immediately.
部署
閱讀部署指南,學(xué)習(xí)如何將應(yīng)用程序部署到測試設(shè)備,應(yīng)用程序商店,以及如何使用代碼將立即更新你的用戶。
Contributing
If you find any problems, please open an issue or submit a fix as a pull request.
We welcome new features, but for large changes let's discuss first to make sure the changes can be accepted and integrated smoothly.
貢獻
如果你發(fā)現(xiàn)任何問題,請打開一個問題或提交修復(fù)作為拉請求浙滤。
我們歡迎新功能,但對于大型變化讓我們先討論,以確保順利更改可以接受和集成阴挣。
License
MIT License
許可證
麻省理工學(xué)院的許可
Credits
This project was initially motivated by Snowflake, a React Native boilerplate by Barton Hammond. It shares some features and design principles for Pepperoni, but it wasn't the right fit for our needs. At this time Snowflake is more mature, so if you like Pepperoni but didn't agree with something we are doing, you should check it out to see if it's a good fit for your app.
學(xué)分
這個項目最初是出于Snowflake,巴頓哈蒙德反應(yīng)本地樣板。股票的一些特性和設(shè)計原則為意大利辣香腸,但它不適合我們的需要瓷叫。這個時候雪花更成熟,所以如果你喜歡意大利辣香腸但不同意我們做的東西,你應(yīng)該檢查一下,看它是否適合你的應(yīng)用程序屯吊。