Skip to content

JacobArthurs/ecommerce_api

Repository files navigation

Ecommerce API

  • 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

About

Ecommerce GraphQL API project using Django and MySQL

Topics

Resources

License

Stars

Watchers

Forks