SERVERS GUIDE

Requirements

  • Docker

Setup

  1. Create an .env file in the ./users_sv folder. You can use the provided ./users_sv/.env.example as a template.

  2. Run Docker Compose.

docker-compose up -d

This will create two containers:

  • django_sv running Django on port 8000
  • nodejs_sv running Node.js on port 9000

Usage

Optional:

  • Load default Products into Django:
docker exec -it django_sv python manage.py loaddata default_products.json
  • Create a superuser for Django:
docker exec -it django_sv python manage.py createsuperuser

Sign in with the superuser credentials to perform CRUD operations on "Products".