Personal website hosted at http://kevin-watt.com. Website is hosted on an Ubuntu 14.04 server using mod_wsgi. Developed using the Flask framework.
- .travis.yml
- kwcom.wsgi
- WSGI file for use by the mod_wsgi-express function
- requirements.txt
- Exhaustive in the scope of development. Modules included for production are listed below.
- setup.cfg
- Configuration for the setup.py file.
- setup.py
- Configuration is inherited from setup.cfg. Requirements are populated by reading the requirements.txt file.
- conftest.py
- Establishes the context for the tests listed below. More details on testing in the testing section
- test_contact.py
- Tests the contact.py file
- test_factory.py
- Tests the __init__.py file
- test_mainpages.py
- Tests the mainpages.py file
- test_utils.py
- Tests the utils.py file.
- __init__.py
- kwcom uses an application factory structure. The create_app function creates the Flask application. It takes a testing configuration as an input. If the testing configuration is not present, the dotenv.load_dotenv function will be called to safely set environment variables to be accessed by the application
- contact.py
- mainpages.py
- The main_pages blueprint configures the backends of the home, skills, experience, and projects pages
- utils.py
- the utils file contains functions that are used across the multiple modules.
The static directory contains CSS and Javascript files, images, and documents that are served by the website. All CSS is incorporated in the style.css file. Javascript is in the process of being extracted from the HTML and into the script.js file.
HTML files to be served by the webpage are stored here. The two directories mainpages and contact align with the blueprints registed with the Flask app. All of the HTML files extend the base.html file.