Dự án Backend cho nền tảng bán hàng, được phát triển bằng Django REST Framework và PostgreSQL.
- ✅ Đăng ký / Đăng nhập / Quên mật khẩu / Xác thực người dùng (JWT)
- ✅ Quản lý sản phẩm (Clothes), Quản lý danh mục (Category)
- ✅ Giỏ hàng và đặt hàng
- ✅ Tìm kiếm, đánh giá sản phẩm
- ✅ Lọc đơn hàng theo người dùng
- ✅ Phương thức thanh toán linh hoạt
- ✅ RESTful API được kiểm thử tự động (unit test)
git clone https://github.com/phnthqnh/WebBanHang.git
cd InternWebpython -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt- Tạo file .env:
# Email config
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=your-email
EMAIL_HOST_PASSWORD=your-password
DEFAULT_FROM_EMAIL=InternWeb <noreply@gmail.com>
# Database
DB_NAME=your-database
DB_USER=your-db_username
DB_PASSWORD=your-db_password
DB_HOST=localhost
DB_PORT=5432
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
python manage.py test
gozic/
├── clothes/
├── InternWeb/
├── manage.py
├── requirements.txt
└── .env