From ab8fba484d11e450d7dc2b68b96a2852defc28f8 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Thu, 1 May 2025 12:39:23 +0200 Subject: Add README. --- README.org | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ run.sh | 0 2 files changed, 61 insertions(+) create mode 100644 README.org mode change 100755 => 100644 run.sh diff --git a/README.org b/README.org new file mode 100644 index 0000000..5c138d2 --- /dev/null +++ b/README.org @@ -0,0 +1,61 @@ +#+TITLE: README.org for =Farm Manager= +#+AUTHOR: Marius Peter +#+DATE: <2022-04-16 Sat> + + +* Folder structure + +** =Pipfile= + Inspecting this file reveals the Python dependencies required by the Flask application. + The convenient =pipenv= Python package bundles together the creation of virtual environments and populating these virtual environments using the same commands as =pip=. For more information on =pipenv=, visit [[https://github.com/pypa/pipenv][the official pipenv page]]. + +** =Pipfile.lock= + This file contains checksums for the packages installed via =pipenv=. + +** =README.org= + This is the file you are currently reading. Github automatically formats README files and presents underneath the code explorer. + +** =app= directory + Contains =.py= Python scripts calling the =Flask= library in order to serve web pages to the end user. + +*** =static= + Static files and assets do not change during the =Flask= application's execution. + +**** =img= + This is where website images are saved. User images will be stored in a database, which is currently not implemented. + +**** =styles= + Here, we store =CSS= style sheets. These contain appearance information for elements described in =HTML= documents. + +*** =templates= + In the templates folder, we organise our =HTML= templates. Rather than simple =HTML= documents which always present the same content to all users, templates are rendered to the user's browser by the application and are populated during loading with content we can request via the Python application. + +*** =routes.py= + This Python file containes our website routes. These are the names of our website's pages, followed by functions describing actions performed on the server side every time a user visits a certain page. + +*** =forms.py= + This Python file contains the forms that our user will sign in throughout the website (registration, login). Possible implementation of the messaging system as a series of forms sent from user to user. + +* Prerequisites + + 1. A Python interpreter and the following dependencies: + | Dependency | Minimum version | + |--------------------+-----------------| + | =flask= | | + | =flask-wtf= | | + | =uwsgi= | | + | =flask-socketio= | | + | =flask-sqlalchemy= | | + | =psycopg2= | | + + 2. A web browser + +* Installation + + 1. Install Python + 2. Install dependencies + +* Viewing the website + + 1. Run the =routes.py= script using your Python interpreter. + 2. Visit =127.0.0.1= on your web browser. diff --git a/run.sh b/run.sh old mode 100755 new mode 100644 -- cgit v1.2.3