feat(backend): PRWLR-4022 Basic Django and DRF setup and dev tools (#4)

* chore: PRWLR-4022 add django-cors-headers

* chore: PRWLR-4022 configure basic CORS

* feat: PRWLR-4022 add drf-spectacular and spec/docs endpoints

* build: PRWLR-4022 add basic docker development deployment

* chore: PRWLR-4022 update schema generation

* chore: PRWLR-4022 bump required Python version to 3.12
This commit is contained in:
Víctor Fernández Poyatos authored and GitHub committed 2024-07-03 09:34:29 -04:00
1 parent b440be717c
commit 7ff6d860ce
24 files changed
+463 -24

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
services:
restful-api:
build:
context: ./src
dockerfile: Dockerfile
image: prowler-restful-api
ports:
- "8000:8000"
restful-api-dev:
build:
context: ./src
dockerfile: Dockerfile.dev
image: prowler-restful-api-dev
ports:
- "8080:8000"
volumes:
- "./src/backend:/home/prowler/backend"
- "./src/pyproject.toml:/home/prowler/pyproject.toml"
profiles:
- dev