Go to file
2021-10-21 14:58:56 +02:00
Dockerfiles Update Dockerfile 2021-10-21 14:48:29 +02:00
.gitignore build context updated, so the docker-compose can run as well on windows 2021-05-18 19:31:36 +02:00
asgi.py First commit 2021-04-01 09:48:35 +02:00
Caddyfile.dev Update caddy files 2021-04-16 18:35:06 +02:00
Caddyfile.pro Update caddy files 2021-04-16 18:35:06 +02:00
Caddyfile.staging Update caddy files 2021-04-16 18:35:06 +02:00
django-launcher.dev.sh Update django-launcher.dev.sh 2021-05-11 17:21:58 +02:00
django-launcher.pro.sh Update django-launcher.pro.sh 2021-05-11 17:22:38 +02:00
docker-compose.dev.yaml Update docker-compose.dev.yaml 2021-10-21 14:55:55 +02:00
docker-compose.pro.yaml Update docker-compose.pro.yaml 2021-10-21 14:56:37 +02:00
docker-compose.staging.yaml Update docker-compose.staging.yaml 2021-10-21 14:58:56 +02:00
gulpfile.js First commit 2021-04-01 09:48:35 +02:00
make-a-backup.sh Create make-a-backup.sh 2021-06-24 10:46:55 +02:00
Makefile Update Makefile 2021-07-01 09:32:47 +02:00
package.json First commit 2021-04-01 09:48:35 +02:00
README.md Update README.md 2021-07-01 09:46:33 +02:00
requirements.txt Update requirements.txt 2021-10-21 14:52:22 +02:00
settings.py Update settings.py 2021-10-21 14:53:22 +02:00

Install

make docker.recreate.django
make run.loaddata
make run.server

Now open:

http://api.localhost

Gulp

npm i

Run.

gulp dev

Tools

Lint

make lint

Formatear

make format

Recrear imagen de Django

make docker.recreate.django

Hacer una nueva migración después de cambiar un model.

make makemigrations

Migrar

make run.migrate

Cargar data mínima.

make run.loaddata

Generar data de desarrollo.

make run.loaddata.test

Other domains

  • Caddy: http://api.localhost.
  • Gulp: http://api.localhost:3000.
  • Django: http://api.localhost:8000.
  • Mailhog: http://api.localhost:8025.

Bash Django

docker exec -it api_django_1 bash

Run production

docker-compose -f docker-compose.pro.yaml up

Open https://domain.com.