This commit is contained in:
67
README.md
67
README.md
@@ -2,5 +2,72 @@
|
||||
|
||||
// V-Encore Lab: Sistema Automatizado v1.0.4
|
||||
|
||||
## 🚀 Inicio Rápido (Desarrollo Local)
|
||||
|
||||
### 1. Clonar y Configurar
|
||||
```bash
|
||||
git clone https://git.v-encore-lab.com/Proyecto-SaaS/django-core-base.git
|
||||
cd django-core-base
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
### 2. Instalar Dependencias
|
||||
```bash
|
||||
pip install -r deployments/requirements.txt
|
||||
```
|
||||
|
||||
### 3. Migraciones de Base de Datos
|
||||
```bash
|
||||
# Crear y aplicar migraciones para todos los modelos
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
|
||||
# Opcional: Crear superusuario
|
||||
python manage.py createsuperuser
|
||||
```
|
||||
|
||||
### 4. Correr el Servidor
|
||||
```bash
|
||||
python manage.py runserver
|
||||
```
|
||||
|
||||
Abrir http://localhost:8000
|
||||
|
||||
## 🐳 Docker (Producción/Desarrollo)
|
||||
|
||||
```bash
|
||||
docker-compose up --build
|
||||
```
|
||||
|
||||
Acceder a:
|
||||
- App: http://localhost:8000
|
||||
- Admin: http://localhost:8000/admin/
|
||||
- DB: localhost:5432 (Postgres)
|
||||
|
||||
## 📋 Comandos Django Comunes
|
||||
|
||||
```bash
|
||||
# Verificar configuración
|
||||
python manage.py check
|
||||
|
||||
# Recopilar static files
|
||||
python manage.py collectstatic --noinput
|
||||
|
||||
# Test
|
||||
python manage.py test
|
||||
```
|
||||
|
||||
## 🔧 Estructura del Proyecto
|
||||
|
||||
```
|
||||
├── apps/ # Aplicaciones Django
|
||||
│ ├── backend_admin/
|
||||
│ ├── common/
|
||||
│ └── promociones/
|
||||
├── core/ # Configuración principal
|
||||
├── deployments/ # Docker, requirements prod
|
||||
└── manage.py
|
||||
```
|
||||
|
||||
## .env Variables
|
||||
Ver `.env.example` para configuración.
|
||||
Reference in New Issue
Block a user