A simple flask app for allocating student pairs in the CITS3403 project.
Activate the python virtual environment:
To run the app:
To stop the app:
To exit the environment:
Requires python3, flask, venv, and sqlite
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
- 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
This should start the app running on localhost at port 5000, i.e. http://localhost:5000/index
Running the tests
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
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.