An example of a secure-by-design site created with no security libraries.
Clone this repo, go to the project root folder in your terminal, set up your venv with pip install virtualenv
, create a
new venv with python -m venv venv
, start up the virtual environment with venv\Scripts\activate
(Windows) or source venv/bin/activate
(Mac/Linux) and install requirements with pip install -r requirements.txt
.
Run python create_db.py
to import some global variables and build the database needed to run the server.
Start the server with python blog.py
from the root folder in your terminal. Connect your browser to
http://127.0.0.1:5000/ to see the site in action. If you're using 2fa, you will need to ensure
dsscw2blogacc@gmail.com is whitelisted in your email app, however due to us using Google Mail accounts in the way we
have, emails may still be restricted. Due to this, you can find copies of any messages that are emailed out by the
server printed in your server console.
Good luck.
Designed by UG-4 - University of East Anglia (CMP) 2020/21