The instructions below will setup a local environment using the TMH AWS Development backend. For almost all development this should be sufficient.
There are two other optional ways to develop using your own backend...
1) Using a local "mocked" backend (see below: amplify mock) 2) Using your own AWS backend (see below: setup aws)
mkdir ~/code
mkdir ~/code/jc
cd ~/code/jc
git clone https://github.com/jesus-collective/mobile.git
# be sure to login using your github credentials
Install packages - from terminal on a linux machine:
cd ~/code/jc/mobile
npm install
To Run - from terminal on a linux machine:
cd ~/code/jc/mobile
npm start
# Press w (web), i (ios), a (android) to start the appropriate client
To Test - from terminal on a linux machine:
cd ~/code/jc/mobile
npm test
Optionally - local backend:
npm install -g @aws-amplify/cli
cd ~/code/jc/mobile
amplify mock
Optionally - to setup AWS backend run:
warning - aws offers a free tier, due to some features that are enabled by default this will result in overages and AWS will bill you
to reduce overages we suggest removing the EC2 elastic search instances that are created
even with this, you will likely go over some free limits and be billed...you are responsible for setting limits and monitoring your own account
npm install -g @aws-amplify/cli
cd ~/code/jc/mobile
amplify configure
amplify push
amplify publish -c
To create deployment packages run:
cd ~/code/jc/mobile
npm run-script buildExpo
# Download the resulting files.
# Upload the files to the Apple or Google Play store.