Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.05 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.05 KB

Django Store

The project for study Django.

Stack:

Local Developing

All actions should be executed from the source directory of the project and only after installing all requirements.

  1. Firstly, create and activate a new virtual environment:

    python3.9 -m venv ../venv
    source ../venv/bin/activate
  2. Install packages:

    pip install --upgrade pip
    pip install -r requirements.txt
  3. Run project dependencies, migrations, fill the database with the fixture data etc.:

    python manage.py migrate
    python manage.py loaddata <path_to_fixture_files>
    python manage.py runserver 
  4. Run Redis Server:

    redis-server
  5. Run Celery:

    celery -A django_store worker --loglevel=INFO
  6. Run Stripe:

    stripe listen --forward-to 127.0.0.1:8000/webhook/stripe/