A system to manage the selection criteria of schools
Follow these steps to have a local running copy of the app.
git clone https://github.com/MIJanda/School-Selection-System.git
If master
is not up to date, git checkout develop
. However, note that code on develop could be having some minor issues to sort.
Here's a great resource to check out:
How To Install and Use PostgreSQL
Create the two databases school_selection_db
(for development) and school_selection_testing_db
(for unit testing).
App was developed with Python 3.6
.
Make sure you have pip
installed on your machine.
Install the dependencies.
pip install -r requirements.txt
Create a .env
file (which defines the environment variables used) at the root of the app.
Add the following details, customizing as needed.
export FLASK_APP=app.py
export FLASK_ENV=development
export FLASK_DEBUG=1
export FLASK_RUN_PORT=5000
Activate the virtual environment.
. venv/bin/activate
Run the application.
flask run
This app uses nose
to run tests.
nosetests --with-coverage --cover-package=routes