Please follow the following steps in order to get up and running with our web application,
-
Download the source files from github by running
git clone https://github.com/macewanCS/BeardedMonkeys.git -
Go to the folder you wish to have your virtual environment installed, and run
virtualenv -p /usr/bin/python3.4 virtual_environment_name -
Activate the virtual environment by running
source virtual_environment_name/bin/activate -
Once the virtual environment is activated, if it is the first time, you may need to install Django. You can do so by simply running
pip install Django==1.10 -
You may verify the installed version of python and Django. To find out python version run
python --version. For Django runpython manage.py --versionorpython -m django --version. Python version should be3.4and Django1.10is preferred. -
After installing the Django in your virtual environment, run
python manage.py migrateto build the app. Note: In few cases, you may have to runpython manage.py makemigrationsbefore doing this step. For more information, please refer to the Django documentation. -
To run the server the command is,
python manage.py runserver -
You may now access the web application by going to the url localhost:8000
-
To create a new user, run
python manage.py createsuperuser -
Admin Access will be available at localhost:8000/admin. You could add user, assign status and branch for each user in the admin pane
-
Note: We have made the branches dynamic. What it means is that whenever we assign a user to a branch, it will automatically adds that branch for "tickets filtration". No hard coding of branches required in order to make them appear in filtration options.
Important Note: Please be sure to setup the branch for each user you create from the admin panel. Otherwise it will give you 404 Does not exist error for the user. For more information on that error, please watch the video tutorial on Localhost Setup, starting at 7m10s.
https://www.youtube.com/watch?v=q03YCMWPIhg
- When pushing your files, make sure you are in your own forked repository, not the group main repository. Run,
git remote show origin - Cache credential for an hour,
git config --global credential.helper 'cache --timeout=3600' - Add remote upstream,
git remote add upstream http://link-to-repo - check configured remote repository,
git remote -v