From 43eae3a4a86db4878b670b7efc14e01bd4c06e0f Mon Sep 17 00:00:00 2001 From: blendoit Date: Wed, 5 Feb 2020 19:47:05 -0800 Subject: 'yes' page styles. --- README.tex | 55 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 21 deletions(-) (limited to 'README.tex') diff --git a/README.tex b/README.tex index 0483e29..e133238 100644 --- a/README.tex +++ b/README.tex @@ -1,4 +1,4 @@ -% Created 2020-01-22 Wed 20:21 +% Created 2020-02-05 Wed 15:56 % Intended LaTeX compiler: pdflatex \documentclass[11pt]{article} \usepackage[utf8]{inputenc} @@ -14,9 +14,8 @@ \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} -\usepackage{fullpage} \author{Marius P. and Vaqar S.} -\date{22 Jan. 2020} +\date{Created: \textit{<2020-01-22 Wed> } \break Updated: \textit{<2020-02-05 Wed>}} \title{README.org for \texttt{yesno}} \hypersetup{ pdfauthor={Marius P. and Vaqar S.}, @@ -32,69 +31,83 @@ \section{Folder structure} -\label{sec:org7993fb5} +\label{sec:org077247d} \subsection{\texttt{Pipfile}} -\label{sec:org80836f9} +\label{sec:org4222668} Inspecting this file reveals the Python dependencies required by the Flask application. The convenient \texttt{pipenv} Python package bundles together the creation of virtual environments and populating these virtual environments using the same commands as \texttt{pip}. For more information on \texttt{pipenv}, visit \href{https://github.com/pypa/pipenv}{the official pipenv page}. \subsection{\texttt{Pipfile.lock}} -\label{sec:orgf06ab89} +\label{sec:org425064c} This file contains checksums for the packages installed via \texttt{pipenv}. \subsection{\texttt{README.org}} -\label{sec:org1715543} +\label{sec:orgdff75cc} This is the file you are currently reading. Github automatically formats README files and presents underneath the code explorer. \subsection{\texttt{app} directory} -\label{sec:org67d9e1d} +\label{sec:orgac83665} Contains \texttt{.py} Python scripts calling the \texttt{Flask} library in order to serve web pages to the end user. \subsubsection{\texttt{static}} -\label{sec:org250fc10} +\label{sec:orgb2e5456} Static files and assets do not change during the \texttt{Flask} application's execution. \begin{enumerate} \item \texttt{img} -\label{sec:org6b963c3} +\label{sec:org7afe92f} This is where website images are saved. User images will be stored in a database, which is currently not implemented. \item \texttt{styles} -\label{sec:org860737a} +\label{sec:org4bfb4f4} Here, we store \texttt{CSS} style sheets. These contain appearance information for elements described in \texttt{HTML} documents. \end{enumerate} \subsubsection{\texttt{templates}} -\label{sec:orgae70d36} +\label{sec:org4f7742b} In the templates folder, we organise our \texttt{HTML} templates. Rather than simple \texttt{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. \subsubsection{\texttt{routes.py}} -\label{sec:orge3ac7eb} +\label{sec:org691e421} 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. \subsubsection{\texttt{forms.py}} -\label{sec:org934f5b3} +\label{sec:org18bbfe0} 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. \section{Prerequisites} -\label{sec:orgf8c00d7} +\label{sec:org37f495c} \begin{enumerate} \item A Python interpreter and the following dependencies: -\begin{enumerate} -\item \texttt{Flask} -\end{enumerate} +\begin{center} +\begin{tabular}{ll} +Dependency & Minimum version\\ +\hline +\texttt{flask} & \\ +\texttt{flask-wtf} & \\ +\texttt{uwsgi} & \\ +\texttt{flask-socketio} & \\ +\texttt{flask-sqlalchemy} & \\ +\texttt{psycopg2} & \\ +\end{tabular} + +\end{center} + \item A web browser \end{enumerate} \section{Installation} -\label{sec:org41d3c46} +\label{sec:org4f8f49c} -Install Python. +\begin{enumerate} +\item Install Python +\item Install dependencies +\end{enumerate} \section{Viewing the website} -\label{sec:orgff7b5c7} +\label{sec:org61e9d73} \begin{enumerate} \item Run the \texttt{routes.py} script using your Python interpreter. -- cgit v1.2.3