Note: Python 3.6.0 is used. Check your python version with python --version
If you don't have virtualenv (it comes with python3 on some systems), install it with pip install virtualenv
Create a new venv (this will create a new folder with python installed and later django/dependencies)
$ virtualenv gtdev
Note: you don't have to call your folder/venv "gtdev"
Now cd into gtdev (or whatever you named your venv) and activate it
$ source bin/activate
For windows: cd into gtdev/Scripts and run activate.bat
Note: you'll have to activate the venv anytime you want to work on this project. Consider adding an alias to your .bash_profile or .bashrc
alias gt="cd ~/Documents/gtdev && source bin/activate"
You can always exit the venv with deactivate
Optionally fork the grepthink repo.
Clone the grepthink master branch.
https://github.com/grepthink/grepthink.git
``cd``` into the grepthink folder.
Copy the example.env file
cp etc/example.env .env
open in your text enter of choice (for me subl .env
).
Set the databse url for local development. Hint: use pwd
and copy/paste.
For local develompent, your DATABASE_URL can be something like:
DATABASE_URL=sqlite:////Users/sammyslug/Documents/gtdev/grepthink/teamwork/db.sqlite3
Make sure you're in your venv then install everything in requirements.txt
$ pip install -r requirements.txt
Try running with python manage.py runserver
- migrations and the command makemigrations (https://docs.djangoproject.com/en/2.1/topics/migrations/)
- googling django...there's a lot out there.
Reach out on slack or through email: https://www.grepthink.com/contact/