/shop

Primary LanguagePython

Online Shop on DRF

Commands:

Build the project (docker-compose build):

make build

Up the project (docker-compose up -d):
make up

Run tests:
make test

Envfile structure:

DJANGO_SETTINGS_MODULE=backend.settings.dev
POSTGRES_DB=backend
POSTGRES_USER=backend
POSTGRES_PASSWORD=backend
POSTGRES_HOST=pg_db
POSTGRES_PORT=5432
SECRET_KEY=123
REDIS_HOST=redis
REDIS_PORT=6379

User guide:

  1. Launch the project via make up command.
  2. Now you can go to the address http://0.0.0.0:8000/ and use API.

Service urls:

  1. http://0.0.0.0:8000/ - Server url
  2. http://0.0.0.0:8000/admin/ - Django admin panel
  3. http://0.0.0.0:8000/schema/swagger-ui/ - Swagger documentation