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
Copy file name to clipboardExpand all lines: README.md
+52-6Lines changed: 52 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,30 @@
2
2
3
3
This project is a [React Native](https://facebook.github.io/react-native/) boilerplate that can be used to kickstart a mobile application.
4
4
5
-
This boilerplate contains:
5
+
The boilerplate provides an architecture optimized for building solid applications through separation of concerns between the UI and business logic.
6
6
7
-
- an empty React Native application created with `react-native init`
7
+
## Content
8
+
9
+
The boilerplate contains:
10
+
11
+
- an "[ejected](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md)" React Native application (v0.55) created with `react-native init`
12
+
- a [clear directory layout](#directory-layout) to provide a base architecture for your application
13
+
-[Redux](https://redux.js.org/) (v3.7) to help manage state
14
+
-[Redux Persist](https://github.com/rt2zz/redux-persist) (v5.9) to persist the Redux state
15
+
-[Redux Sagas](https://redux-saga.js.org) (v5.0) to separate side-effects and logic from state and UI logic
16
+
-[reduxsauce](https://github.com/infinitered/reduxsauce) (v0.7) to facilitate using Redux
17
+
-[apisauce](https://github.com/infinitered/apisauce) (v0.15) to make [axios](https://github.com/axios/axios) even better
8
18
-[prettier](https://prettier.io/) and [eslint](https://eslint.org/) preconfigured for React Native
9
-
- a [directory layout](#directory-layout) for organizing the code of the application
10
19
- a navigation using [react-native-navigation](https://reactnavigation.org)
11
20
21
+
## Updates
22
+
23
+
The boilerplate will follow new React-Native releases as soon as libraries and tools used here are compatible.
-[`App/Images`](App/Images): images used by the application
17
31
-[`App/Stores`](App/Stores): redux [actions, reducers and stores](https://redux.js.org/basics)
@@ -21,15 +35,37 @@ This boilerplate contains:
21
35
22
36
For more information on each directory, click the link and read the directory's README.
23
37
24
-
## Installation
38
+
## Requirements
39
+
40
+
Node 8 or greater is required. Development for iOS requires a Mac and Xcode 9 or up, and will target iOS 9 and up.
25
41
26
-
Make sure you have installed [everything needed to run React Native](https://facebook.github.io/react-native/docs/getting-started.html), then:
42
+
You also need to install the dependencies required by React Native:
43
+
44
+
- for [Android development](https://facebook.github.io/react-native/docs/getting-started.html#installing-dependencies-3)
45
+
- for [iOS development](https://facebook.github.io/react-native/docs/getting-started.html#installing-dependencies)
46
+
47
+
## Using the boilerplate
48
+
49
+
To create a new project using the boilerplate:
27
50
28
51
- clone this repository
29
52
- remove the previous git history: `rm -rf .git/`
53
+
- install the npm dependencies by running `yarn`
30
54
- rename the React Native project to your own project name: `npm run rename -- <YourProjectName>` (the default name is `Boilerplate`)
55
+
- remove the LICENSE file and the "License" section from the README if your project is not open source
56
+
57
+
Feel free to remove the section "Using the boilerplate" from the README (you will not need it anymore in your project). You are encouraged to keep the rest of the documentation in your project so that it is self-explanatory.
31
58
32
-
You can now start the application, for example with `react-native run-android`.
59
+
You can now create a new git repository for your project (using `git init`) and create the first commit.
60
+
61
+
## Running the project
62
+
63
+
Assuming you have all the requirements installed, you can setup and run the project by running:
64
+
65
+
-`yarn install` to install the dependencies
66
+
- create your [configuration file `App/Config/index.js`](App/Config) from `index.dev.js` (in you are in dev environment) and fill the missing values
67
+
-`react-native run-android` to run the Android application (remember to start a simulator or connect an Android phone)
68
+
-`react-native run-ios` to run the iOS application (remember to start a simulator or connect an iPhone phone)
33
69
34
70
## Useful documentation
35
71
@@ -40,3 +76,13 @@ You can now start the application, for example with `react-native run-android`.
40
76
## License
41
77
42
78
This project is released under the [MIT License](LICENSE).
79
+
80
+
## About us
81
+
82
+
[TheCodingMachine](https://www.thecodingmachine.com/) is a web and mobile agency based in Paris and Lyon, France. We are [constantly looking for new developers and team leaders](https://www.thecodingmachine.com/nous-rejoindre/) and we love [working with freelancers](https://coders.thecodingmachine.com/). You'll find [an overview of all our open source projects on our website](https://thecodingmachine.io/open-source) and on [Github](https://github.com/thecodingmachine).
83
+
84
+
## See also
85
+
86
+
Here are alternative boilerplates that you may want to check out:
87
+
88
+
-[Ignite boilerplate](https://github.com/infinitered/ignite-ir-boilerplate-andross): this boilerplate is much more opinionated and packed that this one, we wanted something lighter which is why we did no go with it
Copy file name to clipboardExpand all lines: docs/beta builds.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,3 +186,11 @@ Before continuing make sure you have:
186
186
187
187
-[ ] This thing
188
188
-[ ] This thing
189
+
190
+
191
+
## Troubleshooting
192
+
193
+
### Stuck at `bundle install` running `fastlane init`
194
+
195
+
If the `fastlane init` process is stuck when running `bundle install` it may mean that `bundle install` is asking for root permissions.
196
+
You can stop the process and retry again with `sudo fastlane init`, however you will need to change back ownership of the generated files to your user when it finishes (`sudo chown <your-user> <files>`).
0 commit comments