Coder Social home page Coder Social logo

hatio / ohtk-mobile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onehealthtoolkit/ohtk-mobile

0.0 0.0 0.0 3.8 MB

License: MIT License

Shell 0.04% Ruby 0.26% C++ 2.27% C 0.09% Objective-C 0.01% Java 0.09% Kotlin 0.02% Dart 95.57% Swift 0.08% HTML 0.51% CMake 1.07%

ohtk-mobile's Introduction

OHTK Mobile

OHTK mobile application for community and official reporting.

What you'll need

If necessary, add the Android emulator to your path export PATH=$PATH:~/Library/Android/sdk/emulator/

Install

Get latest version of ohtk-mobile from github:

git clone https://github.com/onehealthtoolkit/ohtk-mobile.git

cd ~/ohtk-mobile

Run flutter build command

flutter pub run build_runner build --delete-conflicting-outputs

Change server to test server

Change settings to

opensur.test

Config Android emulator to use localhost custom url endpoint

# List all available emulators
> emulator  --list-avds

# Start emulator in write mode
# [AVD_NAME] such as Pixel_4_XL_API_25
> emulator  -writable-system -netdelay none -netspeed full -avd [AVD_NAME]

# Wait until emulator is completely started
# Login as root
> adb root

# Remount emulator path /system to writable
> adb remount

# Upload hosts file to emulator
> adb push /path/to/hosts /system/etc/

# List active reverse ports
> adb reverse --list

# Reverse port from localhost server port 8000
> adb reverse tcp:80 tcp:8000

Run Mobile App

Now you're ready to actually test the app. Open your IDE and run the flutter program:

  • ex. Visual Studio Code: Run > Run without Debugging

Try logging in with one of the users created via the OHTK Management System

hosts file sample

127.0.0.1 localhost
127.0.0.1 opensur.test
127.0.0.1 laos.opensur.test
::1 ip6-localhost

ohtk-mobile's People

Contributors

pphetra avatar worawatyao avatar wattana avatar mattparkerls avatar kengggg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.