-
Compose up:
docker compose up -d --build
-
Compose down:
docker compose down
-
Make migrations:
docker compose exec django-app python manage.py makemigrations
-
Migrate:
docker compose exec django-app python manage.py migrate
-
Create superuser:
docker compose exec django-app python manage.py createsuperuser
-
Grant permissions for testing:
docker exec -it ecommerce-mysql mysql -u root -p GRANT ALL PRIVILEGES ON test_ecommerce.* TO 'user'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;
-
Run tests:
docker compose exec django-app python manage.py test
-
Notifications
You must be signed in to change notification settings - Fork 0
Ecommerce GraphQL API project using Django and MySQL
License
JacobArthurs/ecommerce_api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Ecommerce GraphQL API project using Django and MySQL