Installation

Poetry provides a custom installer that will install poetry isolated from the rest of your system.

osx / linux / bashonwindows install instructions

curl -sSL https://install.python-poetry.org | python3 -

windows powershell install instructions

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -

Clone the repository

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

Install dependencies

cd ecommerce-back-django
poetry install

Create the database

  • Instalar Postgres
  • Crear su usuario

Configure the .env file

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@

Getting started

poetry shell
py manage.py migrate
py manage.py LoadSeeds

Initializing project

poetry shell
py manage.py runserver

Run Tests

py manage.py test