Skip to main content

Python Web Sample Project: di.lingkari.com

·419 words·2 mins
Python kelas teknologi Open Source IntelliJ
oon arfiandwi
Author
oon arfiandwi
keep it simple, s!

My latest weekend project Kelas Python now growth very well, in several cities.

Some of the students ask me if I can give them simple-but-completely-use-the-contents-from-class-material example of the python web app.

That is why I create new open source project at my github account 1, a python web app that is integrated with Google+ API (and next version will support store data to Google Datastore). The (deployed) web is available at

http://di.lingkari.com

an alias domain of http://dilingkari.appspot.com

Dilingkari means circled (in english). The project named circled because it is related to Google+ (Circle relations) API.

How to clone the source-code, build the app, and deploy as your own website? Here is an example, how I build it using IntelliJ IDEA.

  1. Install IntelliJ with Plugins: Python, Google App Engine, HTML5. (HTML5 and some other specific plugin required the paid version, but do not worry, you can use trial version for 30 days, or if you are a students please apply for the free license).

  2. Check-out from Version Control, choose git, and put https://github.com/oonid/dilingkari.git as the URL. then press clone.

  3. AND NOW THE JOURNEY JUST STARTED 😁 OOPS.. WAIT, I WILL TRANSLATE TO ENGLISH SOON xD

  4. berikut adalah beberapa gambar proses import project dari git tersebut menjadi project dari IntelliJ (Python Project with Google App Engine Library)

    Setelah membuat IntelliJ IDEA project, jika sudah pernah melakukan setting SDK Python akan muncul tahapan seperti dalam gambar berikut, tetapi jika tidak muncul project SDK tidak perlu kuatir karena nanti bisa dibuat sendiri (mengacu ke Python yang terinstall di komputer).
    Selanjutnya adalah pengenalan Framework, dalam project dilingkari ini menggunakan framework Flask, tapi sayangnya di IntelliJ belum ada dukungan plugin-nya, sehingga akan dikenali sebagai Framework Django. Kemudian app.yaml akan dikenali sebagai bagian dari app-engine.

  5. And finally the project openned on IntelliJ. For some of you that the process is not same with my previous steps, you can edit the Module settings by press right-click at the project name.

    Here is my Module Settings, so you can make your settings equal to mine. 😁

  6. To be recognized as Python Project with Google App Engine Library (if you project not recognized yet), you can add 1 file named Google_App_Engine_SDK.xml under directory dilingkari > .idea > libraries. Please refer image below.

  7. to-be-continued

Do you like project dilingkari 1? Please give star ⭐ on the github project, fork or join me to develop the web.

ps: sometime the website is over-user-limit of the daily Google+ API quota, I will find a way to dispatch the API quota load.