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
總是最新的本地腳手架的反應。
為應用程序代碼模塊化和證據確鑿的結構。
回來的,ImmutableJS安全和Reasonaboutable??狀態管理。
控制回路為Elm-style回來的副作用。
Redux-managed航海家與NavigationExperimental基于堆棧和選項卡導航。
Disk-persisted應用程序狀態為離線緩存支持和時髦的啟動性能。
清潔和可測試的服務層與RESTful api進行交互。
??示例應用程序展示了如何連接在一起。
?JSON Web令牌認證。
?試件進行配置(dev、分期、生產)為iOS和Android。
?內置的錯誤處理和可定制的錯誤屏幕。
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.
測試設置。
摩卡的單元測試應用程序代碼。
酶和完全嘲笑本地反應單元測試UI組件伊斯坦布爾的代碼覆蓋率。
公用事業的端到端集成測試回來的狀態,包括副作用和異步操作。
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.
開發和部署的基礎設施。
Auth0對即食登錄和注冊界面,用戶身份驗證和身份管理。
Bitrise.io配置持續集成和測試應用程序分布。
??谷歌標記經理分析。
?微軟代碼推動持續部署和即時應用程序更新。
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.
開始
構建您自己的應用程序上的Starter Kit,叉或者鏡子這個庫。
因為你不能重命名一個叉,嚴重使用我們推薦使用這些指令鏡像。為Starter Kit開發或玩耍,分叉的路要走。
首先,給您的應用程序名稱通過運行。./support/rename.sh YourAppName。
一旦你已經下載的代碼,按照安裝指南開始。
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.
開發工作流程
設置項目后使用上面的指令,您可以使用您最喜愛的IDE或文本編輯器來編寫代碼,并從命令行運行應用程序。打開本地熱反應模塊重新加載應用開發者菜單更新您的應用程序代碼。
學習如何構建您的應用程序和使用Redux應用程序架構,架構指南讀更多的細節。
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.
部署
閱讀部署指南,學習如何將應用程序部署到測試設備,應用程序商店,以及如何使用代碼將立即更新你的用戶。
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.
貢獻
如果你發現任何問題,請打開一個問題或提交修復作為拉請求。
我們歡迎新功能,但對于大型變化讓我們先討論,以確保順利更改可以接受和集成。
License
MIT License
許可證
麻省理工學院的許可
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.
學分
這個項目最初是出于Snowflake,巴頓哈蒙德反應本地樣板。股票的一些特性和設計原則為意大利辣香腸,但它不適合我們的需要。這個時候雪花更成熟,所以如果你喜歡意大利辣香腸但不同意我們做的東西,你應該檢查一下,看它是否適合你的應用程序。