Skip to content

RMompati/Android-Flask-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Flask App

A simple flask web application to work with Android's WebView.

Individual applications

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.

To run

  • 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 and store_inventory on localhost and use ngrok to access store_inventory outside of localhost.
  • Note the ngrok store_inventory url.
  • Edit the file and line mentioned above.
  • And well... That's it I think.

Well happy hacking...