[Flask] Aggregate your news and vote for the content you care about.
cleanup
Changed files
.gitignore
@@ -1,1 +1,2 @@
1
1
auto/
2
Added:
*.lock
README.tex
@@ -1,116 +0,0 @@
1
Removed:
% Created 2020-02-05 Wed 15:56
2
Removed:
% Intended LaTeX compiler: pdflatex
3
Removed:
\documentclass[11pt]{article}
4
Removed:
\usepackage[utf8]{inputenc}
5
Removed:
\usepackage[T1]{fontenc}
6
Removed:
\usepackage{graphicx}
7
Removed:
\usepackage{grffile}
8
Removed:
\usepackage{longtable}
9
Removed:
\usepackage{wrapfig}
10
Removed:
\usepackage{rotating}
11
Removed:
\usepackage[normalem]{ulem}
12
Removed:
\usepackage{amsmath}
13
Removed:
\usepackage{textcomp}
14
Removed:
\usepackage{amssymb}
15
Removed:
\usepackage{capt-of}
16
Removed:
\usepackage{hyperref}
17
Removed:
\author{Marius P. and Vaqar S.}
18
Removed:
\date{Created: \textit{<2020-01-22 Wed> } \break Updated: \textit{<2020-02-05 Wed>}}
19
Removed:
\title{README.org for \texttt{yesno}}
20
Removed:
\hypersetup{
21
Removed:
pdfauthor={Marius P. and Vaqar S.},
22
Removed:
pdftitle={README.org for \texttt{yesno}},
23
Removed:
pdfkeywords={},
24
Removed:
pdfsubject={},
25
Removed:
pdfcreator={Emacs 26.3 (Org mode 9.2.6)},
26
Removed:
pdflang={English}}
27
Removed:
\begin{document}
28
Removed:
29
Removed:
\maketitle
30
Removed:
\tableofcontents
31
Removed:
32
Removed:
33
Removed:
\section{Folder structure}
34
Removed:
\label{sec:org077247d}
35
Removed:
36
Removed:
\subsection{\texttt{Pipfile}}
37
Removed:
\label{sec:org4222668}
38
Removed:
Inspecting this file reveals the Python dependencies required by the Flask application.
39
Removed:
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}.
40
Removed:
41
Removed:
\subsection{\texttt{Pipfile.lock}}
42
Removed:
\label{sec:org425064c}
43
Removed:
This file contains checksums for the packages installed via \texttt{pipenv}.
44
Removed:
45
Removed:
\subsection{\texttt{README.org}}
46
Removed:
\label{sec:orgdff75cc}
47
Removed:
This is the file you are currently reading. Github automatically formats README files and presents underneath the code explorer.
48
Removed:
49
Removed:
\subsection{\texttt{app} directory}
50
Removed:
\label{sec:orgac83665}
51
Removed:
Contains \texttt{.py} Python scripts calling the \texttt{Flask} library in order to serve web pages to the end user.
52
Removed:
53
Removed:
\subsubsection{\texttt{static}}
54
Removed:
\label{sec:orgb2e5456}
55
Removed:
Static files and assets do not change during the \texttt{Flask} application's execution.
56
Removed:
57
Removed:
\begin{enumerate}
58
Removed:
\item \texttt{img}
59
Removed:
\label{sec:org7afe92f}
60
Removed:
This is where website images are saved. User images will be stored in a database, which is currently not implemented.
61
Removed:
62
Removed:
\item \texttt{styles}
63
Removed:
\label{sec:org4bfb4f4}
64
Removed:
Here, we store \texttt{CSS} style sheets. These contain appearance information for elements described in \texttt{HTML} documents.
65
Removed:
\end{enumerate}
66
Removed:
67
Removed:
\subsubsection{\texttt{templates}}
68
Removed:
\label{sec:org4f7742b}
69
Removed:
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.
70
Removed:
71
Removed:
\subsubsection{\texttt{routes.py}}
72
Removed:
\label{sec:org691e421}
73
Removed:
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.
74
Removed:
75
Removed:
\subsubsection{\texttt{forms.py}}
76
Removed:
\label{sec:org18bbfe0}
77
Removed:
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.
78
Removed:
79
Removed:
\section{Prerequisites}
80
Removed:
\label{sec:org37f495c}
81
Removed:
82
Removed:
\begin{enumerate}
83
Removed:
\item A Python interpreter and the following dependencies:
84
Removed:
\begin{center}
85
Removed:
\begin{tabular}{ll}
86
Removed:
Dependency & Minimum version\\
87
Removed:
\hline
88
Removed:
\texttt{flask} & \\
89
Removed:
\texttt{flask-wtf} & \\
90
Removed:
\texttt{uwsgi} & \\
91
Removed:
\texttt{flask-socketio} & \\
92
Removed:
\texttt{flask-sqlalchemy} & \\
93
Removed:
\texttt{psycopg2} & \\
94
Removed:
\end{tabular}
95
Removed:
96
Removed:
\end{center}
97
Removed:
98
Removed:
\item A web browser
99
Removed:
\end{enumerate}
100
Removed:
101
Removed:
\section{Installation}
102
Removed:
\label{sec:org4f8f49c}
103
Removed:
104
Removed:
\begin{enumerate}
105
Removed:
\item Install Python
106
Removed:
\item Install dependencies
107
Removed:
\end{enumerate}
108
Removed:
109
Removed:
\section{Viewing the website}
110
Removed:
\label{sec:org61e9d73}
111
Removed:
112
Removed:
\begin{enumerate}
113
Removed:
\item Run the \texttt{routes.py} script using your Python interpreter.
114
Removed:
\item Visit \texttt{127.0.0.1} on your web browser.
115
Removed:
\end{enumerate}
116
Removed:
\end{document}