pepperoni-app-kit說明

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,巴頓哈蒙德反應本地樣板。股票的一些特性和設計原則為意大利辣香腸,但它不適合我們的需要。這個時候雪花更成熟,所以如果你喜歡意大利辣香腸但不同意我們做的東西,你應該檢查一下,看它是否適合你的應用程序。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 228,835評論 6 534
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 98,676評論 3 419
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 176,730評論 0 380
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,118評論 1 314
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 71,873評論 6 410
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 55,266評論 1 324
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,330評論 3 443
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,482評論 0 289
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 49,036評論 1 335
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 40,846評論 3 356
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,025評論 1 371
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,575評論 5 362
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 44,279評論 3 347
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,684評論 0 26
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 35,953評論 1 289
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 51,751評論 3 394
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,016評論 2 375

推薦閱讀更多精彩內容