Skip to main content

Coverage Status

GrooveShop

- Django

- Nuxt3

- MediaStream

DOCKER :

DJANGO :

Run django db migrations through docker compose :

  • docker compose run backend sh -c "python manage.py makemigrations --noinput"
    

Run django db migrate through docker compose :

  • docker compose run backend sh -c "python manage.py migrate"
    

Create superuser through docker compose :

  • docker compose run backend sh -c "python manage.py createsuperuser"
    

Run django collectstatic through docker compose :

  • docker compose run backend sh -c "python manage.py collectstatic --noinput"
    

Run django tests through docker compose :

  • docker compose run backend sh -c "python manage.py test tests/"
    

Run django tests with coverage and html through docker compose :

  • docker compose run backend sh -c "coverage run --omit=*/migrations/*,*/management/*,*/manage.py,*/setup.py,*/asgi.py,*/wsgi.py --source='.' manage.py test tests/ && coverage report && coverage html"
    

Run django coverage html through docker compose :

  • docker compose run backend sh -c "coverage html"
    

Seed database with fake data through docker compose :

  • docker compose run backend sh -c "python manage.py populate_all"
    

Run docker compose for specific yml file :

  • docker compose -f <docker compose-file.yml> up -d --build
    

Run docker commands through docker exec :

  • docker exec -it <container_id> <command>
    

Run specific shell command through docker exec :

  • docker exec -it <container_id> sh -c "<command>"
    

Run Locale Message generation through docker exec :

  • docker exec -it <container_id> sh -c "django-admin makemessages -l <locale>"
    
  • docker exec -it <container_id> sh -c "django-admin makemessages --all --ignore=env"
    

Run Locale Message compilation through docker exec :

  • docker exec -it <container_id> sh -c "django-admin compilemessages --ignore=env"
    

CELERY:

Run local celery worker :

  • celery -A app beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
    
  • celery -A app --broker=redis://localhost:6379/0 flower --port=5555
    
  • celery -A app worker -l info --logfile=./logs/celery.log
    
  • celery -A app worker -l info -P solo --logfile=./logs/celery.log
    

PYTHON

--- VERSION 3.11.0 ---

Virtual Environment :

  • Install virtualenv : pip install virtualenv
    Create virtual environment : virtualenv <env_name>
    (Case 1)Activate virtual environment : source <env_name>/bin/activate
    (Case 2)Activate virtual environment : <env_name>/scripts/activate
    Deactivate virtual environment : deactivate
    Install requirements : pip install -r requirements.txt
    Install requirements for specific environment : pip install -r requirements/<env_name>.txt
    

Django :

  • Install django : pip install django
    Create django project : django-admin startproject <project_name>
    Create django app : python manage.py startapp <app_name>
    Run django db migrations : python manage.py makemigrations
    Run django db migrate : python manage.py migrate
    Create superuser : python manage.py createsuperuser
    Run django collectstatic : python manage.py collectstatic
    Run django test : python manage.py test
    Run django shell : python manage.py shell
    Run django shell_plus : python manage.py shell_plus
    Run django dbshell : python manage.py dbshell
    Run django runserver : python manage.py runserver
    

Lint :

  • Step 1: cd src
    
  • AVAILABLE COMMANDS :
    pre-commit run --all-files
    black .
    

Poetry :

  • Install poetry : curl -sSL https://install.python-poetry.org | python3 - OR (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
    Create poetry project : poetry new <project_name>
    Install dependencies : poetry install
    Upgrade poetry : pip install --upgrade poetry
    Update poetry lock file : poetry lock
    Add dependency : poetry add <dependency_name>
    Remove dependency : poetry remove <dependency_name>
    Update dependency : poetry update <dependency_name>
    Run shell : poetry shell
    Run script : poetry run <script_name>
    

Strawberry :

  • Install strawberry : pip install strawberry-graphql
    Create strawberry project : strawberry server
    Run strawberry server : strawberry server
    Run strawberry server for project schema : (src path) : strawberry server core.graphql.schema:schema
    

pre-commit :

  • pre-commit install
    git config --unset core.hooksPath
    

Anaconda :

  • Install anaconda : https://docs.anaconda.com/anaconda/install/
    Create conda environment : conda create --name <env_name> python=3.11.0
    Activate conda environment : conda activate <env_name>
    Deactivate conda environment : conda deactivate
    Create conda environment from yml file : conda env create -f environment.yml
    

DRF-Spectacular :

  • Generate schema : python manage.py spectacular --color --file schema.yml
    

MEDIA STREAM:

NPM :

--- VERSION 18.16.0 ---

  • Step 1: cd mediaStream
    
  • Run npm Install : npm install
    

GIT

--- VERSION 2.36.0.windows.1 ---

Delete origin tags :

  • git tag -l | xargs -n 1 git push --delete origin
    

Delete local tags :

  • git tag -l | xargs git tag -d
    

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grooveshop_django_api-0.12.0.tar.gz (14.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grooveshop_django_api-0.12.0-py3-none-any.whl (105.7 kB view details)

Uploaded Python 3

File details

Details for the file grooveshop_django_api-0.12.0.tar.gz.

File metadata

  • Download URL: grooveshop_django_api-0.12.0.tar.gz
  • Upload date:
  • Size: 14.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for grooveshop_django_api-0.12.0.tar.gz
Algorithm Hash digest
SHA256 97a8c30a79ee0d87a2a339f64dc1180fb6223a317cb9545d3a042f79204e23b9
MD5 89936729f9f56313136fbd191225bdf1
BLAKE2b-256 9277aaa2dd975ddcf2fa5990d50e2241593febc4747ae516b8dc3cd94fee8c8f

See more details on using hashes here.

File details

Details for the file grooveshop_django_api-0.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for grooveshop_django_api-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd32f12b8518cb247f8267d849bf06f9a73f143f80d0f2b91523313de1b4f32f
MD5 bb91a54c1fa3fcd64db363345810143f
BLAKE2b-256 3652993c69b0f8769ed3f4a79a2ab44613d29b5199824b4ba512f1500e659dce

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page