Handmade backend for Android app using Python Flask Framework
You are a mobile developer, you are very much happy with your handcrafted apps. Ever wondered of exploring/making backend services for your apps by own.? I recently encountered Python Flask framework. It is easy to understand and to do. I’ll roughly go through it.
Flask web app (Assumptions: Python3, Flask, PyCharm IDE)
Step 1 — Install Flask framework
$ pip3 install Flask
Step 2 — Start coding
I’ve discussed other ways of running a web app based on our need.
Step 3 — Run the server
Since, I use PyCharm with Mac book, Ctrl + R -> to run server
Android App (Assumptions: Retrofit2, Gradle 3.0.0, Kotlin, Android Studio)
Retrofit API service,
POST request from the app,
GET request from the app,
It’ll work, goto github for full source code.
Happy Coding!