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.
Student ID | Name | Github Username |
---|---|---|
22957747 | Kirsty Straiton | K-Straiton |
23343513 | Lauren Pudney | laurenpudz |
23417131 | Sebastian Gazey | Sebagabones |
23599356 | Sersang Ngedup | sersangn |
For the following steps make sure you are in the root directory of the repository.
- Create a python virtual environment
python3 -m venv .venv
- Activate the environment
source .venv/bin/activate
- Install the requirements
pip install -r requirements.txt
- Create the secret key enviroment variable
export FLASK_SECRET_KEY='<SECRET_KEY_OF_YOUR_CHOICE>'
- Create the database
flask db init
flask db migrate
flask db upgrade
- Run the app
flask run
- 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
- Activate the virtual environment and export secret key (as shown in the steps above)
- Run
python3 -m unittest tests/unittests.py
- Have Chrome installed and ready to launch
- Activate the virtual environment and export secret key (as shown in the steps above)
- Run
python3 -m unittest tests/selenium.py