Skip to content

K-Straiton/CITS3403-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CITS3403-Project

Purpose of the Application

ThinkMad is a discussion forum site that allows ThinkPad users and enthusiasts to share their knowledge, help others, and talk about all things ThinkPad related. It uses a question and response system, with users being able to create an account, and then use this account to post questions and respond to existing questions from other users.

Group Members

Student ID Name Github Username
22957747 Kirsty Straiton K-Straiton
23343513 Lauren Pudney laurenpudz
23417131 Sebastian Gazey Sebagabones
23599356 Sersang Ngedup sersangn

Architecture

How to Launch

For the following steps make sure you are in the root directory of the repository.

  1. Create a python virtual environment
python3 -m venv .venv
  1. Activate the environment
source .venv/bin/activate
  1. Install the requirements
pip install -r requirements.txt
  1. Create the secret key enviroment variable
export FLASK_SECRET_KEY='<SECRET_KEY_OF_YOUR_CHOICE>'
  1. Create the database
flask db init
flask db migrate
flask db upgrade
  1. Run the app
flask run
  1. Add dummy data to the server
    • Once the flask app is running, open a new terminal in the same directory.
    • Activate the python virtual enviroment in the new terminal
    • Then run the following command
flask add_data

How to Run Tests

Unit tests

  1. Activate the virtual environment and export secret key (as shown in the steps above)
  2. Run
python3 -m unittest tests/unittests.py 

Selenium

  1. Have Chrome installed and ready to launch
  2. Activate the virtual environment and export secret key (as shown in the steps above)
  3. Run
python3 -m unittest tests/selenium.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •