Poetry provides a custom installer that will install poetry
isolated
from the rest of your system.
curl -sSL https://install.python-poetry.org | python3 -
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
Clone with SSH
git clone git@github.com:Coxxio/e-commerce-back-django.git
Or Clone with HTTPS
git clone https://github.com/Coxxio/e-commerce-back-django.git
cd ecommerce-back-django
poetry install
- Instalar Postgres
- Crear su usuario
copiar el archivo .env.example como .env en la ruta raiz del sistema y configurar las siguiente variables.
DB_NAME=
DB_TEST=
DB_USER=
DB_PASSWORD=
DB_HOST=localhost
DB_PORT=5432
JWT=5
JWT_REFRESH=30
DJANGO_SETTINGS_MODULE=src.settings.dev
SECRET_KEY=django-insecure-_l67gkupnfr_79_tmq&wro_s*o0kyzrhh%g+^vv@
poetry shell
py manage.py migrate
py manage.py LoadSeeds
poetry shell
py manage.py runserver
py manage.py test