Hello everyone!
I just wanted to pop in and share a bit about the crazy journey Iβve embarked onβa project that, honestly, I started without any real knowledge or certifications in IT. Yup, you read that right, no official papers but lots of enthusiasm!
So hereβs the scoop: Iβve been working on integrating a chatbot that, as of today, has reached about 20% completion. Itβs amazing how much you can accomplish with the right tools and a bit of determination, even if youβre starting from scratch.
For this project, Iβm juggling a few different technologiesβPython, Heroku, Twilio, GitHub, VPS, among others. Itβs been a week of non-stop learning and, yes, that means progress is a bit slow but super exciting!
Iβd really appreciate any feedback or suggestions you guys might have for improving this project. Itβs been a mix of trial and error, and every little bit of insight from this community could be a game changer for me.
Wish me luck as I aim to complete this! If anyone has ideas or has been through a similar path, your tips would be golden. Hereβs to more learning and maybe a few less bumps along the way.
Thanks for reading and hope to hear some of your thoughts soon!
whatsapp-gpt-chatbot/
β
βββ app/ # Folder untuk aplikasi Flask
β βββ init.py # Inisialisasi aplikasi Flask
β βββ models.py # Definisi model database (SQLite)
β βββ routes.py # Definisi laluan (routes) untuk WhatsApp bot dan tempahan
β βββ templates/ # Folder untuk fail HTML (jika ada halaman statik)
β βββ utils.py # Fungsi utiliti (pengesahan, format mesej, dll.)
β
βββ config/
β βββ config.py # Fail konfigurasi umum untuk aplikasi (database, secret keys)
β βββ .env # Fail environment untuk tetapan rahsia (Twilio SID, token)
β
βββ dev/
β βββ run.py # Skrip untuk menjalankan aplikasi Flask dalam mod pembangunan
β
βββ prod/
β βββ wsgi.py # Skrip untuk menjalankan aplikasi Flask dengan Gunicorn untuk production
β
βββ database/
β βββ tempahan.db # Fail SQLite untuk menyimpan rekod tempahan kereta
β
βββ tests/
β βββ test_routes.py # Ujian unit untuk memastikan laluan aplikasi berfungsi
β βββ test_utils.py # Ujian unit untuk fungsi utiliti
β
βββ static/ # Folder untuk fail statik seperti CSS atau gambar
β βββ styles.css # Gaya CSS untuk aplikasi (jika perlu)
β
βββ logs/ # Folder untuk menyimpan fail log
β βββ app.log # Fail log untuk menyimpan rekod aktiviti aplikasi
β
βββ requirements.txt # Fail untuk menyenaraikan dependencies Python
βββ README.md # Dokumentasi projek
βββ Procfile # Fail konfigurasi untuk Heroku (production deployment)