Skip to content

nhhoang14/Luxora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luxora 🛋️

• Elegant lighting decor store — discover, customize, and shop modern lamps with Luxora.
• A modern furniture e-commerce web app built with Django + TailwindCSS + daisyUI.

🚀 Setup Guide

1️⃣ Clone the repository

git clone https://github.com/nhhoang14/Luxora.git
cd Luxora

2️⃣ Create and activate virtual environment

python -m venv venv
venv\Scripts\activate

3️⃣ Install Python dependencies

pip install -r requirements.txt

4️⃣ Install Node.js dependencies (Tailwind + daisyUI)

cd theme/static_src
npm install
cd ../../

5️⃣ Database setup

python manage.py migrate
python manage.py loaddata users.json categorys.json colors.json products.json

6️⃣ Build TailwindCSS

python manage.py tailwind build

7️⃣ Run the project

Mở 2 terminal song song:

Terminal 1 (Tailwind watcher):

venv\Scripts\activate
python manage.py tailwind start

Terminal 2 (Django server):

venv\Scripts\activate
python manage.py runserver

⚙️ Development Notes

🔄 1. When updating static files

If you add, edit, or delete files in static/ (like images, JS, or CSS):

python manage.py collectstatic

This command collects all static assets into /staticfiles/ for deployment.

🧩 2. When modifying Django models

After changing any model (e.g. adding new fields or tables):

python manage.py makemigrations
python manage.py migrate

🎨 3. When editing Tailwind or theme styles

If you update Tailwind config, component classes, or theme/static_src/src/style.css:

python manage.py tailwind build

Or during active development, run the watcher:

python manage.py tailwind start

Changes in Tailwind or daisyUI classes will rebuild your CSS in real-time.

🧰 4. If Tailwind or Node dependencies change

cd theme/static_src
npm install
cd ../../
python manage.py tailwind build

About

Elegant lighting decor store built with Django, HTMX, Tailwind CSS, and SQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages