Group project for EECS 448.
Make a virtual environment with virtualenvwrapper.
$ mkvirtualenv EECS448
(EECS448)$ pip install -r requirements.txt
(EECS448)$ mysql -u root -p
# Login to mysql
mysql> create database EECS448_dev;
mysql> create user 'EECS448'@'localhost' identified by 'pass';
mysql> grant all privileges on EECS448_dev.* to 'EECS448'@'localhost';
mysql> exit
Bye
(EECS448)$ python app/manage.py runserver
All tests should be in app/test
. Uses pytest
module.
# Don't forget to create test db
mysql> create database EECS448_test;
mysql> grant all privileges on EECS448_test.* to 'EECS448'@'localhost';
To run tests do the following.
$ cd app
/app $ python manage.py test
Wasn't able to resolve issue with Nginx not having permissions to the socket.
$ vagrant up --provision