sudo apt-get update
sudo apt-get install mysql-server
sudo apt-get install python3-pip
sudo pip3 install virtualenv
sudo apt-get install libmysqlclient-dev
- Open a new terminal and type:
mysql -u root -p
- MySQL monitor opens up
CREATE DATABASE virtual_clinic CHARACTER SET UTF8;
CREATE USER admin@localhost IDENTIFIED BY 'Admin@vc1';
GRANT ALL PRIVILEGES ON virtual_clinic.* TO admin@localhost;
FLUSH PRIVILEGES;
virtualenv ENV
cd ENV
source bin/activate
pip install --upgrade setuptools
cd virtualclinic
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
- To run the tests
python manage.py test