You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+53-35Lines changed: 53 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Please refer to [https://github.com/bartonhammond/snowflake-hapi-openshift](http
46
46
* To run Hapi locally, follow the instructions at [https://github.com/bartonhammond/snowflake-hapi-openshift](https://github.com/bartonhammond/snowflake-hapi-openshift). You will have to install **MongoDB** and **Redis**.
47
47
***Note**: The default is to run remotely on the **RedHat OpenShift Snowflake Server** so there is nothing more to do if you want to use it! In that case, just use the `config.js` as is.
48
48
* If you want to install and run the **Snowflake Hapi Server** locally, then update the ```src/lib/config.js``` file as shown below.
49
-
***Note**: use the ip from the `ifconfig` command for the `local`. This ip matches the **Snowflake Hapi Server** setup.
49
+
***Note**: use the ip from the `ifconfig` command for the `local`. This ip matches the **Snowflake Hapi Server** setup.
50
50
* An example of the `url` is shown below assuming the `ifconfig` shows the local ip to be `192.168.0.5`
51
51
***Note**: You don't have to provide the `local.url` value if you are using the `remote`
52
52
@@ -64,7 +64,7 @@ Please refer to [https://github.com/bartonhammond/snowflake-hapi-openshift](http
64
64
65
65
66
66
67
-
### To run:
67
+
### To run:
68
68
* For iOS, from the command line, run via command: ```react-native run-ios``` or open XCode and load project, Run ```Product -> Run (⌘+R)```
69
69
* For android, from the command line, run via the command: ```react-native run-android``` assuming you have an emulator or device running and attached
70
70
* To run Jest, ```npm test```
@@ -78,7 +78,7 @@ Please refer to [https://github.com/bartonhammond/snowflake-hapi-openshift](http
78
78
------------
79
79
##Notes
80
80
81
-
Code is written to [JS Standard](https://github.com/feross/standard). See [Text Editor Plugins](https://github.com/feross/standard#text-editor-plugins) for your favorite editor integration.
81
+
Code is written to [JS Standard](https://github.com/feross/standard) and validated with [Eslint](http://eslint.org/). To setup your favorite editor using the Eslint configuration, see [Editors](http://eslint.org/docs/user-guide/integrations#editors)
82
82
83
83
Navigation is handled with [React Native Router Flux](https://github.com/aksonov/react-native-router-flux). Multiple scenes support **Login, Register, and Reset Password**. Once successfully logged in, there are 3 more scenes: **Logout, Subview, and Profile**.
84
84
@@ -102,17 +102,18 @@ Snowflake supports **Hot Reloading** of its state.
102
102
103
103
Snowflake uses CI with [Bitrise.io](https://www.bitrise.io) and has **extensive docs and 45+ min of video** demonstating implementation.
104
104
105
-
Snowflake has a **choice of servers**, either
105
+
Snowflake has a **choice of servers**, either
106
106
107
107
* The original **Parse.com**
108
-
or
108
+
or
109
109
***Hapi Server** that runs on **RedHat Openshift** and **locally**.
110
110
111
111
See [https://github.com/bartonhammond/snowflake-hapi-openshift](https://github.com/bartonhammond/snowflake-hapi-openshift) for more information about the OpenShift Hapi server. The setup instructions below describe how to select the server you desire.
@@ -161,7 +179,7 @@ Some quotes from users of **Snowflake**
161
179
**ICICletech Blog: Mobile App Development With 8 Awesome React-Native Starter Kits**: We have listed some of our favorite starter kits and boilerplates to get started quickly.
*React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React.*
208
226
209
227
What more can I say? It's a fantastic leap forward in providing the ability to write native applications with Javascript that target both iOS and Android.
210
228
211
229
This application provides one code base that works on both platforms. It demonstrates Form interactions, Navigation, and use of many other components.
212
230
213
-
###[Jest](https://facebook.github.io/jest/)
231
+
###[Jest](https://facebook.github.io/jest/)
214
232
*85 Unit tests that cover plain objects and JSX components*
215
233
216
234
The de-facto standard for React/Native testing. This app demonstrates how to mock **ReactNative, node_modules, classes** and to properly **test JSX components** by programmatically changing the props, and throughly **test the applications data state and the actions** in conjunction with Redux.
@@ -243,7 +261,7 @@ Using Validate.js for the Form processing was a breeze! And with the ability to
243
261
---------------
244
262
245
263
246
-
## Continuous Integration
264
+
## Continuous Integration
247
265
248
266
CI proves to the developer that everything required to build and test
249
267
the application is well defined and repeatable. Without CI, one would
@@ -265,18 +283,18 @@ The following videos will walk you through setting up CI with BitRise.io
@@ -573,14 +591,14 @@ If you'd like to read an excellent tutorial on Redux I can't recommend this one
573
591
## Hot Reloading
574
592
This video shows Snowflake exporting and importing state from Redux. It demonstrates, with the iOS Simulator, the process of copying the state for import at a later time. After the demo, I walk through the code to clarify how I achieved this. It's assumed you have some familiarity with Redux. Hopefully it helps you gain a better understanding of what Redux provides you!
alt="Snowflake Hot Loading" width="240" height="180" border="10" /></a>
578
596
579
597
580
598
581
599
-------------
582
600
583
-
## Faq
601
+
## Faq
584
602
585
603
### How do I change the Language of the App?
586
604
@@ -596,7 +614,7 @@ Also, it had this statement
596
614
597
615
I don't want to deal w/ wrapping my head around Flux Actions and have to monkey-patch or something to get Redux Actions.
598
616
599
-
In a previous life, I worked with Parse JS SDK and it's based on backbone.js. So I didn't go that direction either, because, again, I didn't want to have another data model to deal with. Plus, at the time I was using it, the SDK was buggy and it was difficult to work with.
617
+
In a previous life, I worked with Parse JS SDK and it's based on backbone.js. So I didn't go that direction either, because, again, I didn't want to have another data model to deal with. Plus, at the time I was using it, the SDK was buggy and it was difficult to work with.
600
618
601
619
With the Parse Rest API, it's simple, can be tested itself from the command line with curl, it's clear, it's succinct and it's easily replaced with something else, an example such as Mongo/Mongoose without much, if any, impact on the code base.
0 commit comments