IT2566 Infosecurity Project
- Visit this page and download
sqlite-tools-win32-x86-3330000.zip
(or use this direct link). - In the zip file, extract the 3 EXE files to the
C:\sqlite3
directory. - Use the keyboard shortcut
Windows key + R
, type insystempropertiesadvanced
and pressEnter
. A new window titled System Properties should open. - Click on the button labeled
Environment Variables
near the bottom. - In the
System Variables
section, scroll down and double-click on thePath
variable. A new window titled Edit environment variable should open. - Click on
New
, type inC:\sqlite3
, and pressEnter
. - Press
OK
on all the previous dialogs to close them.
- Open an administrator command prompt.
- Change directory to the project folder (e.g.
C:\Users\<username>\infosecurity-project\
). - Run
python -m venv venv
and wait for it to finish. - Run
venv\scripts\activate
. - Run
pip install -r requirements.txt
.
NOTE: If you installed a new package, update
requirements.txt
by following the steps below (since thevenv
directory will not be pushed to the remote repository):
- Open an administrator command prompt.
- Change directory to the project folder (e.g.
C:\Users\<username>\infosecurity-project\
).- Run
venv\scripts\activate
.- Run
pip freeze > requirements.txt
.- Commit the changes to
requirements.txt
and push it to the remote repository.
This project is formatted using Black. Instructions for how to install black can be found here.
Please remember to run black .
before committing your changes to any Python file(s) to ensure consistent formatting across all Python files in this project.
camelCase
: first word is all lowercase, then subsequent words are capitalized. Has no delimiters.PascalCase
: likecamelCase
, but the first word is also capitalized.snake_case
: all words are in lowercase, delimited by a single underscore.SCREAMING_SNAKE_CASE
likesnake_case
, but all words are in uppercase.kebab-case
all words are in lowercase, delimited by a single hyphen.
Use snake_case
for most names, except:
- Class names:
PascalCase
- Constants:
SCREAMING_SNAKE_CASE
You DO NOT use camelCase
in Python.
Use camelCase
for most names, except:
- Class names:
PascalCase
- Constants:
SCREAMING_SNAKE_CASE
You DO NOT use snake_case
in JavaScript.
CSS (e.g. background-color
), HTML attribute names and values (e.g. <button data-target="#generate-new-api-key-prompt">Generate New API Key</button>
), and URLs (e.g. /api/key-management
)
Use kebab-case
for all names.
Use snake_case
for Jinja variables, since they are essentially Python variables under the hood.