Skip to content
master
Switch branches/tags
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Pair Up!

A simple flask app for allocating student pairs in the CITS3403 project.

Getting Started

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

Prerequisites

Requires python3, flask, venv, and sqlite

Give examples

Installing

Install python3, sqlite3

  1. 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
  1. Install sqlite
  1. Build the database: flask db init
  2. flask run

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

Deployment

via localhost

Built With

vim and git

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

Authors

  • Tim French - Initial work - drtnf

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published