- git clone the project.
- git checkout develop
- cd team_members
- pip install virtualenv
- virtualenv env
- source env/bin/activate
- pip install -r requirements.pip
- setup mysql server in the system with username root and password qwerty
- log into mysql console via mysql -uroot -pqwerty
- create database team_management_system;
- exit mysql console by typing exit
- cd team_management_system
- There are some errors with django-logging-json module in python 2.7, which I have used. So, two files need to be edited for the code to work. The pros of django-logging-json outweigh the negatives. So, I chose to stick with this module.
- vim ../env/lib/python2.7/site-packages/django_logging/cursor_wrapper.py. Go to line number 36.
Replace
Thread(target=do_log, args=(self.cursor, *args)).start()
byThread(target=do_log, args=(self.cursor, args)).start()
. Save the file and exit. - vim ../env/lib/python2.7/site-packages/django_logging/settings.py. Goto line number 57. Replace
from .cursor_wrapper import CursorLogWrapper
withfrom django_logging.cursor_wrapper import CursorLogWrapper
. Save the file and exit. - python manage.py makemigration
- python manage.py migrate
- for cross verifying migrations, run python manage.py makemigrations team_app
- if the above output shows new model Member, then run python manage.py migrate team_app
- python manage.py runserver 8888. Here 8888 is the port on which django server is running.
- For API Documentation refer to wiki section.
- cd team_members/team_management_system
- python manage.py run_test