This is the repository for the dashboard for the PoPS forecast and control system.
This section is designed to clarify the branch structure of this repository and where new features and bug fixes should go.
Most bugs/issues will be found in the master branch as it is the branch being used in production. Thus bug fixes should be merged into master once tested. Bug fixes should be released as minor versions (e.g. if major release is 1.0 then the first bug fix would be released as version 1.1).
When creating new features create a branch from master using the following syntax feature/new_feature. For example, we want to add a transportation network model for human assisted dispersal, the branch created would be named feature/transportation_network_model (or similar). New features will be merged into master once tested based on the priorities of our stakeholders first. Once new features are tested in a live testing environment with any other new features being included in the next major release we will merge them into master and create an official major release version (e.g. update from version 1.1 to version 2.0).
If you are interested in contributing to PoPS development and are not a core developer on the model, please take a look at following documents to make the process as seamless as possible.
We are using Pipenv for our virtual environment. To use, install on your system:
pip install pipenv
To run use
pipenv install
pipenv shell
Clone the PoPS_Project repository. Check out the develpment branch.
cd PoPS_Project
pipenv install #create virtual environment and install dependencies
pipenv shell #launch virtual environment
python manage.py makemigrations #make migrations instructions for database
python manage.py migrate #create or modify database
python manage.py runserver #launch the server
Launch browser to check if the website is running at: http://localhost:8000
First, create an admin user:
cd PoPS_Project
python manage.py createsuperuser
Follow the prompts to create the admin user.
Then log in to the admin site at http://localhost:8000/admin