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阅读 216,651评论 6 501
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,468评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 162,931评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,218评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,234评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,198评论 1 299
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,084评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,926评论 0 274
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,341评论 1 311
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,563评论 2 333
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,731评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,430评论 5 343
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,036评论 3 326
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,676评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,829评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,743评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,629评论 2 354

推荐阅读更多精彩内容