#How do you feel?
#Installation to help dev:
#Please note that you can do all this without using MySQL and just use the SQLite database, but please please let me know that you aren't using the dev environment in your pull requests.
##Step 1:
git clone git@github.com:lucasmarcelli/mood-tracker.git
cd mood_tracker
##Step 2:
Linux:
sudo apt-get install python3-pip python3-dev mysql-server libmysqlclient-dev
sudo mysql_install_db
sudo mysql_secure_installation
Mac: download mysql community server from https://dev.mysql.com/downloads/mysql/ then
which mysql
if the above doesn't output anything add: $PATH=$PATH:/usr/bin/mysql
to your .bash_profile
ensure you start the server
##Step 3:
mysql -u root -p
CREATE DATABASE mood CHARACTER SET UTF8;
CREATE USER userperson@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON mood.* TO userperson@localhost;
FLUSH PRIVILEGES;
exit
##Step 4:
sudo pip3 install virtualenv
virtualenv moodenv
source moodenv/bin/activate
pip3 install -r requirements.txt
##Step 5:
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser
follow the instructions to create superuser
python3 manage.py runserver
go to 127.0.0.1:8000
#Everytime you want to dev you MUST
source moodenv/bin/activate
first