Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 952 Bytes

File metadata and controls

58 lines (42 loc) · 952 Bytes

Notes to setup and run

new app needs new FIELD_ENCRYPTION_KEY

cd backend
python generate_encryption_key.py
-- save to djanproj/settings.py

Django app

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

dev only user and pass

jakub jakub123456

Redis for Celery task queue

in docker

Celery start on windows

cd .\backend\
celery -A djanproj worker -l info --pool=solo 

test individual functions

python manage.py shell
from apps.upgates_integration.sync_logic import process_stock_adjustments
process_stock_adjustments()
from apps.upgates_integration.tasks import process_stock_adjustments_task
process_stock_adjustments_task.delay() # for celery test
process_stock_adjustments_task() # w/o celery

Frontend

cd .\frontend\
$env:REACT_APP_API_BASE_URL="http://localhost:8000/api/v1"
npm start