pepperoni-app-kit說(shuō)明

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)。
回來(lái)的,ImmutableJS安全和Reasonaboutable??狀態(tài)管理。
控制回路為Elm-style回來(lái)的副作用。
Redux-managed航海家與NavigationExperimental基于堆棧和選項(xiàng)卡導(dǎo)航。
Disk-persisted應(yīng)用程序狀態(tài)為離線(xiàn)緩存支持和時(shí)髦的啟動(dòng)性能。
清潔和可測(cè)試的服務(wù)層與RESTful api進(jìn)行交互。
??示例應(yīng)用程序展示了如何連接在一起。
?JSON Web令牌認(rèn)證。
?試件進(jìn)行配置(dev、分期、生產(chǎn))為iOS和Android。
?內(nèi)置的錯(cuò)誤處理和可定制的錯(cuò)誤屏幕。

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.

測(cè)試設(shè)置。

摩卡的單元測(cè)試應(yīng)用程序代碼。
酶和完全嘲笑本地反應(yīng)單元測(cè)試UI組件伊斯坦布爾的代碼覆蓋率。
公用事業(yè)的端到端集成測(cè)試回來(lái)的狀態(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.

開(kāi)發(fā)和部署的基礎(chǔ)設(shè)施。

Auth0對(duì)即食登錄和注冊(cè)界面,用戶(hù)身份驗(yàn)證和身份管理。
Bitrise.io配置持續(xù)集成和測(cè)試應(yīng)用程序分布。
??谷歌標(biāo)記經(jīng)理分析。
?微軟代碼推動(dòng)持續(xù)部署和即時(shí)應(yīng)用程序更新。

Roadmap

TODO Crash reporting
TODO Android and iOS UI Testing with Calaba.sh?
TODO Feature flags?

路線(xiàn)圖。

TODO崩潰報(bào)告。
TODO Android和iOS和Calaba.sh UI測(cè)試嗎?。
TODO特性標(biāo)志?。

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.

開(kāi)始

構(gòu)建您自己的應(yīng)用程序上的Starter Kit,叉或者鏡子這個(gè)庫(kù)。
因?yàn)槟悴荒苤孛粋€(gè)叉,嚴(yán)重使用我們推薦使用這些指令鏡像。為Starter Kit開(kāi)發(fā)或玩耍,分叉的路要走。
首先,給您的應(yīng)用程序名稱(chēng)通過(guò)運(yùn)行。./support/rename.sh YourAppName。
一旦你已經(jīng)下載的代碼,按照安裝指南開(kāi)始。

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.

開(kāi)發(fā)工作流程
設(shè)置項(xiàng)目后使用上面的指令,您可以使用您最喜愛(ài)的IDE或文本編輯器來(lái)編寫(xiě)代碼,并從命令行運(yùn)行應(yīng)用程序。打開(kāi)本地?zé)岱磻?yīng)模塊重新加載應(yīng)用開(kāi)發(fā)者菜單更新您的應(yīng)用程序代碼。
學(xué)習(xí)如何構(gòu)建您的應(yīng)用程序和使用Redux應(yīng)用程序架構(gòu),架構(gòu)指南讀更多的細(xì)節(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)用程序部署到測(cè)試設(shè)備,應(yīng)用程序商店,以及如何使用代碼將立即更新你的用戶(hù)。

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.

貢獻(xiàn)
如果你發(fā)現(xiàn)任何問(wèn)題,請(qǐng)打開(kāi)一個(gè)問(wèn)題或提交修復(fù)作為拉請(qǐng)求。
我們歡迎新功能,但對(duì)于大型變化讓我們先討論,以確保順利更改可以接受和集成。

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é)分
這個(gè)項(xiàng)目最初是出于Snowflake,巴頓哈蒙德反應(yīng)本地樣板。股票的一些特性和設(shè)計(jì)原則為意大利辣香腸,但它不適合我們的需要。這個(gè)時(shí)候雪花更成熟,所以如果你喜歡意大利辣香腸但不同意我們做的東西,你應(yīng)該檢查一下,看它是否適合你的應(yīng)用程序。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀(guān)點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容