Skip to content

Installation and Development

KingKP edited this page Oct 30, 2018 · 3 revisions

How to install and develop the source code

Prerequisites

The following need to be installed on the system

  • Node.js (including npm)
Download the Repo

Download or clone the repo onto your local system

Install dependencies
  1. First globally install the react cli npm install -g react-native-cli and real time editing tool expo globally via npm install -g expo-cli via your command line interface.

  2. Navigate to the local repo inside of a command line interface (terminal, powershell, cmd) first type in npm install

Android and iOS native emulation development

An excellent guide on how to enable native emulation when developing the application follow the link

Start development server

type npm start in your cli and then navigate to it via your Expo phone app

Trouble shooting

If any errors occur you can seek help at https://github.com/FormidableLabs/victory-native https://facebook.github.io/react-native/docs/getting-started.html

For Testing and Using the application

Without modifications to test functionality

To test the application without any modifications or need to download the source code vist the url https://expo.io/@kpmate/GamerWatch

Test code developed locally
  1. Start the server by navigating to the local repo inside of a command line interface (terminal, powershell, cmd) first type in npm start

  2. Then type in expo publish to the command line interface and your application will be published in production mode for both iOS and android with the changes you made.

  3. You can now visit your application from the url expo posted in the CLI that is hosted externally as well as via your local server.