initialize project documentation and setup instructions
This commit is contained in:
54
README.md
54
README.md
@@ -1 +1,53 @@
|
||||
# fln-django-template
|
||||
# fln-django-template
|
||||
|
||||
Django base template dengan integrasi LDAP authentication.
|
||||
|
||||
## 🛠️ Frontend Dependencies
|
||||
Project ini menggunakan kombinasi library modern untuk UI/UX yang dinamis:
|
||||
|
||||
| Category | Libraries |
|
||||
| :--- | :--- |
|
||||
| **CSS Framework** | Bootstrap 5 |
|
||||
| **Icons** | Bootstrap Icons, CoreUI, Tabler, Remix, MDI, Micons |
|
||||
| **Tables** | Bootstrap Table, DataTables |
|
||||
| **Form Components** | Select2, Flatpickr, Pickr |
|
||||
| **Interactions** | HTMX, SweetAlert2, jQuery |
|
||||
| **Media & Charts** | Chart.js, html5-qrcode |
|
||||
---
|
||||
|
||||
## ⚙️ System Dependencies (Ubuntu)
|
||||
Wajib diinstall untuk mendukung `django-auth-ldap` agar proses kompilasi library C berjalan lancar:
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install -y python3-dev libldap2-dev libsasl2-dev libssl-dev
|
||||
```
|
||||
|
||||
## 🚀 Setup Environment
|
||||
### Step 1: Virtual Environment
|
||||
Pilih salah satu metode di bawah ini:
|
||||
|
||||
Option 1 — Using venv
|
||||
|
||||
```bash
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install django django-environ django-auth-ldap
|
||||
```
|
||||
Option 2 — Using uv
|
||||
```bash
|
||||
uv venv
|
||||
uv pip install django django-environ django-auth-ldap
|
||||
```
|
||||
|
||||
### Step 2: Environment Variables
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
### Step 3: Database Migration
|
||||
```Bash
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
python manage.py runserver
|
||||
```
|
||||
Reference in New Issue
Block a user