ngrhadi / digi-product-be

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Required

  • install POETRY - Poetry is a tool for dependency management and packaging in Python
  • reproduce env file with your configuration database (postgresql)

Step to reproduce

# going to inside project and create venv automatically
poetry shell

# install dependencies
poetry install --no-root

# add configuration env in this project
poetry config virtualenvs.in-project true

# then open new terminal and reload windows (using ctrl + shift + P in vscode)
# to make sure all config loaded, and run again
poetry shell

# run migrations
poetry run python manage.py migrate

# create superuser
poetry run python manage.py createsuperuser

# init dummy data sample
poetry run python manage.py runsql sql/master_product.sql

# running project
poetry run python manage.py runserver

About


Languages

Language:Python 95.1%Language:Dockerfile 4.0%Language:HTML 0.9%