A simple flask web application to work with Android's WebView.
The following is the list of individual applications that make up this application(Hopefully).
- Store Inventory - A Flask application for basic store inventory.
- AFA API - An API used by the Flask application to get, add, update, and delete data from a database.
- Store Inventory WebView - An android application that uses WebView to render the Flask application on an android device(Hopefully).
The Idea is to run both the api and flask app on services like ngrok and edit MainActivity.kt to use loadUrl()
instead and pass in the ngrok url.
- You will need Android studio for the Android app.
- Install the python and dependencies:
$ pip install -r requirements.txt
- You can just run the
afa-api
andstore_inventory
onlocalhost
and usengrok
to accessstore_inventory
outside oflocalhost
. - Note the
ngrok store_inventory
url. - Edit the file and line mentioned above.
- And well... That's it I think.
Well happy hacking...