Skip to content

Commit

Permalink
Fixes #132
Browse files Browse the repository at this point in the history
  • Loading branch information
bartonhammond committed Aug 28, 2016
1 parent 8a1bbea commit bade73f
Show file tree
Hide file tree
Showing 62 changed files with 3,010 additions and 3,203 deletions.
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parser": "babel-eslint",
"rules": {
"strict": 0
}
}
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@ Snowflake ![snowflake](https://cloud.githubusercontent.com/assets/1282364/115993
==================================
A React-Native starter mobile app, or maybe just an example, or maybe a boilerplate (you decide) for iOS and Android with a single code base. - [Demo](#screens)

[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![Join the chat at https://gitter.im/bartonhammond/snowflake](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bartonhammond/snowflake?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
![ios](https://img.shields.io/badge/IOS--blue.svg) [![Build Status](https://www.bitrise.io/app/348ae0a97c5e147a.svg?token=RmDwzjeIGuo7i9MeazE1fg)](https://www.bitrise.io/app/348ae0a97c5e147a)
![andriod](https://img.shields.io/badge/Android--blue.svg) [![Build Status](https://www.bitrise.io/app/1e0425744dcc7ce3.svg?token=uvZDZvo89BLXvjrArJJreQ)](https://www.bitrise.io/app/1e0425744dcc7ce3)
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/bartonhammond/snowflake/blob/master/LICENSE)
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/bartonhammond/snowflake/blob/master/LICENSE)

## Installation

* [Install React-Native](https://facebook.github.io/react-native/docs/getting-started.html#content)

* Clone snowflake:

```
git clone https://github.com/bartonhammond/snowflake.git
```
`git clone https://github.com/bartonhammond/snowflake.git`

* install dependencies

```
cd snowflake
npm install
```

* Copy or move ```src/lib/config.example.js``` to ```src/lib/config.js```.
* Note: you must select one of three options for the ```backend``` as shown below:
* Copy or move ```src/lib/config.example.js``` to ```src/lib/config.js```. Note: you must select one of three options for the ```backend``` as shown below:

```
backend: {
Expand All @@ -51,7 +50,7 @@ npm install
```

* If you choose Parse.com, create account and app on Parse.com
* Copy the Parse.com app keys for APP_ID and REST_API_KEY and update ```src/lib/config.js```
* Copy the Parse.com app keys for APP_ID and REST_API_KEY and update `src/lib/config.js`
* Update the Apps Settings -> Authentication
* Allow username and password-based authentication -> Yes
* Allow anonymous users -> No
Expand All @@ -72,6 +71,8 @@ npm install
------------
##Notes

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.

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**.

A user can **change** their **Email Address** and **User Name** once they are logged in using the **Profile** form.
Expand Down
7 changes: 3 additions & 4 deletions index.android.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';
'use strict'

import snowflake from './src/snowflake';

snowflake('android');
import snowflake from './src/snowflake'

snowflake('android')

6 changes: 3 additions & 3 deletions index.ios.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
'use strict'

import snowflake from './src/snowflake';
import snowflake from './src/snowflake'

snowflake('ios');
snowflake('ios')
Loading

0 comments on commit bade73f

Please sign in to comment.