/magnet-client

A nearby content discovery client for Android & iOS

Primary LanguageJavaMozilla Public License 2.0MPL-2.0

Stories in Ready

Magnet

A nearby content discovery client for Android and iOS built with React-Native.

Setup

  1. Make sure that you have node >= v5.11.0 and npm >= 3.8.6
  2. Install react-native on your machine: npm install react-native react-native-cli -g
  3. Clone this project: git clone git@github.com:mozilla-magnet/magnet-client.git && cd magnet-client
  4. Install dependencies: npm install
  5. Start the development server: npm start

Running on Android

  1. Follow the 'running on device' instructions
  2. Run react-native run-android

Running on iOS

  1. Install 'Carthage' you can use the 'latest release'. And perform the following from the ios directory:
carthage bootstrap --platform iOS

If you already have Carthage installed, this step has been added as part of the postinstall npm scripts.

  1. Follow the 'running on device' instructions.

  2. If you want to run the local development server, which hosts the JavaScript bundle for React native, you need to update didFinishLaunchingWithOptions to load from the server instead of from a bundle. There is a line commented out.

If you don't have a team certificate for the Mozilla organization choose your own developer certificate (or create one) and change the bundle indentifier.