This is the repository for the Pangea Jurisdiction frontend.
We use docker for development, so make sure that you get the latest version (should be at least 17.04).
Setup instructions:
- Clone the repository
- Run
docker-compose up -d
to build and start all the containers (wil take a few minutes). - Run
docker-compose exec pangea bash
to enter into the "pangea" container (it's the container where node is running). - Run
npm install
to get all the dependencies. - Run
npm run start-native
and wait 2 - 4 minutes. A QR-Code should be printed. - Now you just need to scan the QR-Code using the Expo app while connected in the same network as your computer.
- Stop the containers
docker-compose stop
- Destroy the containers
docker-compose down
You can test the mobile app without cloning the repo and/or building the app yourself. You can just download the Expo app to your phone: https://expo.io/
Then go to this page and scan the QR-Code using the Expo app.
Easy as that, now you can test the app on your phone.
start-native
: Start mobile app
ios
: Run app on IOS simulator
android
: Run app on Android simulator
eject-native
: Eject Native project
test
: Run mobile app tests
start
: Start webserver
build
: Build and watch app
test-web
: Run web app tests
eject
: Eject project
The folder structure is as follwoing:
- src
- actions: The action creators
- components: Stateless functional components, only UI logic
- containers: React Components including business logic
- images: Icons/images
- reducers: Reducers Redux functions
- services: API wrappers
- styles: css and js stylesheets
We are following the Airbnb Guidelines
There is already a .eslint.json file containing the specifications, you just need to integrate it on your favorite editor.