- Docker
-
Create an
.env
file in the./users_sv
folder. You can use the provided ./users_sv/.env.example as a template. -
Run Docker Compose.
docker-compose up -d
This will create two containers:
django_sv
running Django on port 8000nodejs_sv
running Node.js on port 9000
- Access Django Swagger Docs: http://localhost:8000/api/docs
- Access Node Swagger Docs: http://localhost:9000/api/docs
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
- Access Django Admin: http://localhost:8000/admin
Sign in with the superuser credentials to perform CRUD operations on "Products".