A simple flask app for allocating student pairs in the CITS3403 project.
Activate the python virtual environment:
$source virtual-environment/bin/activate
To run the app:
$flask run
To stop the app:
$^C
To exit the environment:
$deactivate
Requires python3, flask, venv, and sqlite
Give examples
Install python3, sqlite3
- Set up a virtual environment:
- use pip or another package manager to install virtualenv package
pip install virtualenv
- start the provided virtual environment
source virtual-environment/bin/activate
- This should include flask and all the required packages
- Install sqlite
- Windows instructions
- In *nix,
sudo apt-get install sqlite
- Build the database:
flask db init
flask run
This should start the app running on localhost at port 5000, i.e. http://localhost:5000/index
A few tests now:
To run unit tests
python -m tests.unittest
To run selenium tests, make sure that you have the
appropriate web driver installed. In this case it should be geckodriver for Firefox,
and it assumes that it is installed in the test directory.
Then start the webserver in TestingConfig, and run
python -m tests.systemtest
via localhost
vim and git
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Tim French - Initial work - drtnf
This project is licensed under the MIT License - see the LICENSE.md file for details
- Built following the Flask Mega-Tutorial by Miguel Grinberg.