Add README.

Commit
ab8fba484d11e450d7dc2b68b96a2852defc28f8
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
Changed files
README.org
index 00000000..5c138d2d 000000..100644
@@ -0,0 +1,61 @@
1 Added: #+TITLE: README.org for =Farm Manager=
2 Added: #+AUTHOR: Marius Peter
3 Added: #+DATE: <2022-04-16 Sat>
4 Added:
5 Added:
6 Added: * Folder structure
7 Added:
8 Added: ** =Pipfile=
9 Added: Inspecting this file reveals the Python dependencies required by the Flask application.
10 Added: 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]].
11 Added:
12 Added: ** =Pipfile.lock=
13 Added: This file contains checksums for the packages installed via =pipenv=.
14 Added:
15 Added: ** =README.org=
16 Added: This is the file you are currently reading. Github automatically formats README files and presents underneath the code explorer.
17 Added:
18 Added: ** =app= directory
19 Added: Contains =.py= Python scripts calling the =Flask= library in order to serve web pages to the end user.
20 Added:
21 Added: *** =static=
22 Added: Static files and assets do not change during the =Flask= application's execution.
23 Added:
24 Added: **** =img=
25 Added: This is where website images are saved. User images will be stored in a database, which is currently not implemented.
26 Added:
27 Added: **** =styles=
28 Added: Here, we store =CSS= style sheets. These contain appearance information for elements described in =HTML= documents.
29 Added:
30 Added: *** =templates=
31 Added: 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.
32 Added:
33 Added: *** =routes.py=
34 Added: 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.
35 Added:
36 Added: *** =forms.py=
37 Added: 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.
38 Added:
39 Added: * Prerequisites
40 Added:
41 Added: 1. A Python interpreter and the following dependencies:
42 Added: | Dependency | Minimum version |
43 Added: |--------------------+-----------------|
44 Added: | =flask= | |
45 Added: | =flask-wtf= | |
46 Added: | =uwsgi= | |
47 Added: | =flask-socketio= | |
48 Added: | =flask-sqlalchemy= | |
49 Added: | =psycopg2= | |
50 Added:
51 Added: 2. A web browser
52 Added:
53 Added: * Installation
54 Added:
55 Added: 1. Install Python
56 Added: 2. Install dependencies
57 Added:
58 Added: * Viewing the website
59 Added:
60 Added: 1. Run the =routes.py= script using your Python interpreter.
61 Added: 2. Visit =127.0.0.1= on your web browser.
run.sh
index f30097b5..f30097b5 100755..100644