Go to file
jnfire 128271411d fix names
fix names
2022-07-29 15:15:22 +02:00
core fix names 2022-07-29 15:15:22 +02:00
Dockerfiles add env and clean old apps 2022-07-29 10:59:09 +02:00
.gitignore Add template 2022-06-27 14:28:40 +02:00
asgi.py First commit 2021-04-01 09:48:35 +02:00
Caddyfile add env and clean old apps 2022-07-29 10:59:09 +02:00
django-launcher.sh add env and clean old apps 2022-07-29 10:59:09 +02:00
docker-compose.dev.yaml fix names 2022-07-29 15:15:22 +02:00
docker-compose.pro.yaml add env and clean old apps 2022-07-29 10:59:09 +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 fix names 2022-07-29 15:15:22 +02:00
manage.py fix names 2022-07-29 15:15:22 +02:00
package.json First commit 2021-04-01 09:48:35 +02:00
README.md fix names 2022-07-29 15:15:22 +02:00
requirements.txt fix names 2022-07-29 15:15:22 +02:00

Install

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

Now open:

http://template.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://template.localhost.
  • Gulp: http://template.localhost:3000.
  • Django: http://template.localhost:8000.
  • Mailhog: http://template.localhost:8025.

Bash Django

docker exec -it template-django bash

Run production

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

Open https://template.io.

Enviroment (.env)

PROJECT_NAME=template

# Domain
DOMAIN=template.localhost
DOMAIN_URL=http://template.localhost

# Database
DB_NAME=template_db
DB_USER=postgres
DB_PASSWORD=postgres
DB_HOST=postgresql
DB_PORT=5432

# Django options
DJANGO_SECRET_KEY=mysecret

# Redis
REDIS_HOST=redis
REDIS_PORT=6379

# Caddy
CADDY_PORT_ONE=80
CADDY_PORT_TWO=443

# Email
DEFAULT_FROM_EMAIL=no-reply@template.localhost
EMAIL_CONTACT=info@template.localhost
EMAIL_HOST=mailhog
EMAIL_USER=
EMAIL_PASSWORD=
EMAIL_PORT=1025
EMAIL_USE_TLS=False
EMAIL_USE_SSL=False

# Mailhog
MAILHOG_PORT=8025