प्रोजेक्ट टेम्पलेट·Pro
Flask + SQLite वेब ऐप
Flask में रीडिंग लिस्ट: सर्वर पर बनने वाले पेज और सादे फ़ॉर्म, SQLite में डेटा और एक छोटा JSON API। टेस्ट Flask के टेस्ट क्लाइंट का इस्तेमाल करते हैं। Linux एनवायरनमेंट में Python और pip चाहिए; यह तय वर्ज़न वाले 7 पैकेज इंस्टॉल करता है।
इसे इंस्टॉल करने के लिए PocketCode Pro चाहिए।
अगर आपके Android डिवाइस पर PocketCode इंस्टॉल है, तो यह पेज ऐप में खुलेगा।
प्रीव्यू
फ़ाइलें
README.md
app.py
readinglist/__init__.py
readinglist/db.py
readinglist/static/style.css
readinglist/templates/index.html
readinglist/views.py
requirements.txt
tests/__init__.py
tests/test_app.pyREADME.md
# Reading list: Flask + SQLite A small web app in Python: a reading list where you add titles and links, mark them as read and delete them. Pages are rendered on the server with Jinja templates and plain forms (no JavaScript), data goes to SQLite, and there is a JSON API for the same list. Comes with tests. ## Run it in PocketCode You need the app's Linux environment with Python 3.10 or newer and pip (the Developer pack in Terminal › Linux includes both). 1. Open the terminal in this project's folder (Open Terminal Here, in the editor menu). 2. Install Flask and what it needs (7 small packages, versions pinned in `requirements.txt`; needs internet): ```sh python3 -m pip install --break-system-packages -r requirements.txt ``` 3. Start the server: ```sh python3 app.py ``` Or open `app.py` and tap Run. 4. Open http://localhost:5000 in the DevBrowser (or in the phone's browser). Stop it with Ctrl+C in the terminal, or Stop in the Run panel. If you prefer a virtual environment: `python3 -m venv .venv`, then `. .venv/bin/activate` and `pip install -r requirements.txt`. ## Run the tests ```sh python3 -m unittest -v ``` They use a temporary database, so your list is not touched. ## Where things are | Path | What it does |यह प्रीव्यू छोटा किया गया है। पूरा कंटेंट इंस्टॉल करने पर मिलेगा।
1.0.0 में बदलाव
पहला संस्करण।