Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Remove sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnocentini committed Jan 3, 2017
1 parent 98084a4 commit c05481c
Show file tree
Hide file tree
Showing 81 changed files with 1 addition and 5,394 deletions.
3 changes: 0 additions & 3 deletions ReactNativeCouchbaseLiteExample/.babelrc

This file was deleted.

6 changes: 0 additions & 6 deletions ReactNativeCouchbaseLiteExample/.buckconfig

This file was deleted.

45 changes: 0 additions & 45 deletions ReactNativeCouchbaseLiteExample/.flowconfig

This file was deleted.

1 change: 0 additions & 1 deletion ReactNativeCouchbaseLiteExample/.gitattributes

This file was deleted.

48 changes: 0 additions & 48 deletions ReactNativeCouchbaseLiteExample/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion ReactNativeCouchbaseLiteExample/.watchmanconfig

This file was deleted.

46 changes: 1 addition & 45 deletions ReactNativeCouchbaseLiteExample/README.md
@@ -1,45 +1 @@
## Getting Started

1. Open **ios/ReactNativeCouchbaseLiteExample.xcodeproj** in Xcode or **android/build.gradle** in Android Studio.
2. Run `npm install` to install React Native dependencies.
3. Run `npm install ./../` to install react-native-couchbase-lite from the parent directory.
4. Build and run. You should see a list of groceries which is a pre-built database.

<img src="https://cl.ly/2t31350o0s3x/Simulator%20Screen%20Shot%2030%20Nov%202016,%2014.08.20.png" width="25%" />
<img src="https://cl.ly/163J0w0Z2w3q/sdk_phone_x86MASTER11302016140903.png" width="25%" />

5. Start Sync Gateway.

```bash
$ ~/Downloads/couchbase-sync-gateway/bin/sync_gateway sync-gateway-config.json
```

## Steps to add react-native-couchbase-lite from source

You may prefer to clone this repo and use it in your project instead of using what is published on npm. The steps below describe how to do that.

1. Create a new React Native project.

```bash
# Update react-native-cli
npm install -g react-native-cli
# Create a new project
react-native init MyApp
# Start the RN server
cd MyApp
react-native start
```

2. Install the react-native-couchbase-mobile module relatively to the root of this repo.

```bash
npm install ./../
```

3. Link it with your **MyApp** project.

```bash
rnpm link react-native-couchbase-lite
```

4. Follow [those steps in the README](https://github.com/couchbaselabs/react-native-couchbase-lite#ios) to add the remaining dependencies for iOS and Android.
[Moved here](https://github.com/couchbaselabs/mobile-training-todo/tree/master/react-native)
12 changes: 0 additions & 12 deletions ReactNativeCouchbaseLiteExample/__tests__/index.android.js

This file was deleted.

12 changes: 0 additions & 12 deletions ReactNativeCouchbaseLiteExample/__tests__/index.ios.js

This file was deleted.

66 changes: 0 additions & 66 deletions ReactNativeCouchbaseLiteExample/android/app/BUCK

This file was deleted.

0 comments on commit c05481c

Please sign in to comment.