cd /home/projects
sudo mkdir exchange_office
sudo chown {{YOUR_USER}}:{{YOUR_USER}} exchange_office
git clone [email protected]:justEugene94/exchanger-api.git
cd docker/mysql/docker-entrypoint-initdb.d
cp init.sql.example init.sql
sudo service nginx stop
sudo service mysql stop
docker-compose up --build
Enter in python container:
docker-compose exec python bash
Migrations:
python3 manage.py migrate
Seeds:
python3 manage.py loaddata currencies commerce_value
python3 manage.py coefficient_seed --number=20
python3 manage.py purchase_seed --customers=10 --purchases=15
Static:
python3 manage.py collectstatic
Functional tests:
docker-compose run django ./manage.py test