Human-Trafficking Training Grade Database
- Ensure you have the latest version of Python 3: https://www.python.org/downloads/
- Set up virtual environment: https://dev.to/kachiic/how-to-clone-a-django-project-from-github-and-run-it-locally-mac-ios-2o4k (This link may be better: https://www.w3schools.com/django/django_create_virtual_environment.php#:~:text=It%20is%20suggested%20to%20have,we%20will%20call%20it%20myworld%20.)
- Ensure you have the latest version of Python 3: https://www.python.org/downloads/
- Pull git project into your IDE (Suggested - Visual Studio Code) – VS code download - https://code.visualstudio.com/download
- Complete the migration of the database tables to be in sync with our models. (run this when setting up the project)
pip install -r requirements.txt
python manage.py makemigrations
- finish migrating the data
python manage.py migrate
- create a super user
manage.py createsuperuser.
- Populate database
python manage.py populate_database py
- Run the project with:
python manage.py runserver
- Look at you! You ran the project (yay) - very cool
Note: Create a FORK of the repository, then clone your fork on your local machine - You will create pull requests with your changes as opposed to updating the repository directly unless it's a small change (i.e. implementing a large feature vs updating ReadME or adding code comments). This will allow others a chance to approve changes!
Any collaborator may merge a PR afer confirming the code works.
Be sure to update your fork regularly :)