pip freeze > requirements.txt # when you commit, don't forget to update required packages you used
As of right now, the web url is https://github.com/hackny2017labs/csforall.git
git clone https://github.com/hackny2017labs/csforall.git
cd csforall/
Check here for the relevant install for your OS https://dev.mysql.com/downloads/mysql/
Go through installation and !! TAKE NOTE OF PASSWORD !!
If you don't already have virtualenv then install it before setting it up
sudo pip install virtualenv
While inside csforall directory, activate virtual environment to install relevant packages:
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt # install the necessary requirements
If this is the first time setting up mysql, there's some overhead to get it working. You need to start the mysql server, and you can use this link to do so for relevant OS: https://dev.mysql.com/doc/refman/5.7/en/installing.html
On OS X, I was able to go to systems preferences, search mysql and manually turn on the server
Add mysql to path (optional)
export PATH=${PATH}:/usr/local/mysql/bin/
# this is for mac osx
Now you have to set up the password and database that corresponds to our settings in csforall/cs4all/settings.py
mysql
mysql -u root -p
# You'll be prompted for the password from installation (the one you took note of hopefully)
And in mysql:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'cs4JustAboutEverybody!'; # change to relevant password
CREATE DATABASE cs4AllDB character set utf8; # I'm told Django expects utf8. The name is for convenience.
exit
cd csforall/ # the root file you cloned originally
python manage.py makemigrations # sometimes you have to do this for different apps-- add the app name in that case
python manage.py migrate
python manage.py runserver
If this doesn't get everything set up, add relevant info to this doc