removing references to letzshop, replacing by wizamart

This commit is contained in:
2025-11-23 20:19:00 +01:00
parent c100d839f1
commit 756e12fe7b
13 changed files with 58 additions and 56 deletions

View File

@@ -34,7 +34,7 @@ This FastAPI application provides a complete ecommerce backend solution designed
### Project Structure ### Project Structure
``` ```
letzshop_api/ wizamart/
├── main.py # FastAPI application entry point ├── main.py # FastAPI application entry point
├── app/ ├── app/
│ ├── core/ │ ├── core/
@@ -179,8 +179,8 @@ make qa
```bash ```bash
# Clone the repository # Clone the repository
git clone <repository-url> git clone <wizamart-repo>
cd letzshop_api cd wizamart-repo
# Create virtual environment # Create virtual environment
python -m venv venv python -m venv venv

View File

@@ -1,6 +1,6 @@
{% extends "admin/base.html" %} {% extends "admin/base.html" %}
{% block title %}Users Management - LetzShop Admin{% endblock %} {% block title %}Users Management - Wizamart Admin{% endblock %}
{% block page_title %}Users Management{% endblock %} {% block page_title %}Users Management{% endblock %}

View File

@@ -6,7 +6,7 @@ services:
image: postgres:15 image: postgres:15
restart: always restart: always
environment: environment:
POSTGRES_DB: ecommerce_db POSTGRES_DB: wizamart_db
POSTGRES_USER: ecommerce_user POSTGRES_USER: ecommerce_user
POSTGRES_PASSWORD: secure_password POSTGRES_PASSWORD: secure_password
volumes: volumes:
@@ -15,7 +15,7 @@ services:
ports: ports:
- "5432:5432" - "5432:5432"
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ecommerce_user -d ecommerce_db"] test: ["CMD-SHELL", "pg_isready -U wizamart_user -d wizamart_db"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3

View File

@@ -1,6 +1,6 @@
# API Overview # API Overview
The Letzshop Import API provides comprehensive endpoints for managing products, shops, users, and marketplace imports. This section provides high-level guidance and concepts for working with our API. The Wizamart API provides comprehensive endpoints for managing products, shops, users, and marketplace imports. This section provides high-level guidance and concepts for working with our API.
## Interactive Documentation ## Interactive Documentation
@@ -15,7 +15,7 @@ For hands-on API exploration and testing, use our interactive documentation:
### Base URL ### Base URL
``` ```
Production: https://api.letzshop.com/api/v1 Production: https://wizamart.com/api/v1
Development: http://localhost:8000/api/v1 Development: http://localhost:8000/api/v1
``` ```

View File

@@ -518,8 +518,8 @@ def debug_environment():
**Setup:** **Setup:**
```bash ```bash
# Clone repo # Clone repo
git clone <repo-url> git clone <wizamart-repo>
cd wizamart cd wizamart-repo
# Create virtual environment # Create virtual environment
python -m venv venv python -m venv venv

View File

@@ -2,7 +2,7 @@
## Overview ## Overview
The LetzShop API uses a unified custom exception system to provide consistent, meaningful error responses across all endpoints. This system was redesigned to eliminate competing exception handlers and provide a single source of truth for error handling. The Wizamart API uses a unified custom exception system to provide consistent, meaningful error responses across all endpoints. This system was redesigned to eliminate competing exception handlers and provide a single source of truth for error handling.
## Architecture ## Architecture

View File

@@ -314,7 +314,7 @@ If you need to work immediately:
``` ```
Host: localhost Host: localhost
Port: 5432 Port: 5432
Database: letzshop_db Database: wizamart_db
User: [from .env file] User: [from .env file]
Password: [from .env file] Password: [from .env file]
``` ```

View File

@@ -8,8 +8,8 @@ Quick reference for common database operations. See `DATABASE_SETUP_GUIDE.md` fo
```bash ```bash
# 1. Clone and setup # 1. Clone and setup
git clone <repo> git clone <wizamart-repo>
cd letzshop cd wizamart-repo
python -m venv venv python -m venv venv
venv\Scripts\activate # Windows venv\Scripts\activate # Windows
pip install -r requirements.txt pip install -r requirements.txt

View File

@@ -2,7 +2,7 @@
## Overview ## Overview
This guide walks you through setting up the LetzShop database from scratch. Whether you're a new developer joining the team or need to reset your local database, this document covers everything you need to know. This guide walks you through setting up the Wizamart database from scratch. Whether you're a new developer joining the team or need to reset your local database, this document covers everything you need to know.
--- ---
@@ -30,20 +30,20 @@ This guide walks you through setting up the LetzShop database from scratch. Whet
```bash ```bash
# 1. Clone the repository # 1. Clone the repository
git clone <repository-url> git clone <wizamart-repo>
cd letzshop cd wizamart-repo
# 2. Create virtual environment # 2. Create virtual environment
python -m venv venv python -m venv venv
# 3. Activate virtual environment # 3. Activate virtual environment
# Windows: # Windows:
venv\Scripts\activate venv\Scripts\activate
# Linux/Mac: # Linux/Mac:
source venv/bin/activate source venv/bin/activate
# 4. Install dependencies # 4. Install dependencies
pip install -r requirements.txt pip install -r requirements.txt
``` ```
--- ---
@@ -59,7 +59,7 @@ Create or update `.env` file in project root:
DATABASE_URL=sqlite:///./wizamart.db DATABASE_URL=sqlite:///./wizamart.db
# For PostgreSQL (production): # For PostgreSQL (production):
# DATABASE_URL=postgresql://user:password@localhost:5432/letzshop # DATABASE_URL=postgresql://user:password@localhost:5432/wizamart
# Other required settings # Other required settings
SECRET_KEY=your-secret-key-here-change-in-production SECRET_KEY=your-secret-key-here-change-in-production
@@ -86,7 +86,7 @@ alembic init alembic
sqlalchemy.url = sqlite:///./wizamart.db sqlalchemy.url = sqlite:///./wizamart.db
# Or for PostgreSQL: # Or for PostgreSQL:
# sqlalchemy.url = postgresql://user:password@localhost:5432/letzshop # sqlalchemy.url = postgresql://user:password@localhost:5432/wizamart
``` ```
**Configure `alembic/env.py`:** **Configure `alembic/env.py`:**
@@ -179,7 +179,7 @@ auth_manager = AuthManager()
# Create admin user # Create admin user
admin = User( admin = User(
username="admin", username="admin",
email="admin@letzshop.com", email="admin@wizamart.com",
hashed_password=auth_manager.hash_password("admin123"), hashed_password=auth_manager.hash_password("admin123"),
role="admin", role="admin",
is_active=True, is_active=True,
@@ -723,7 +723,7 @@ def seed_database():
# Create admin user # Create admin user
admin = User( admin = User(
username="admin", username="admin",
email="admin@letzshop.com", email="admin@wizamart.com",
hashed_password=get_password_hash("admin123"), hashed_password=get_password_hash("admin123"),
is_admin=True, is_admin=True,
is_active=True, is_active=True,

View File

@@ -1,6 +1,6 @@
# Configuration Guide # Configuration Guide
Environment configuration for the Letzshop Import API. Environment configuration for the Wizamart API.
## Environment Variables ## Environment Variables
@@ -8,8 +8,8 @@ Create a `.env` file in your project root:
```env ```env
# Database Configuration # Database Configuration
DATABASE_URL=sqlite:///./ecommerce.db DATABASE_URL=sqlite:///./wizamart.db
# For PostgreSQL: DATABASE_URL=postgresql://user:password@localhost:5432/ecommerce # For PostgreSQL: DATABASE_URL=postgresql://user:password@localhost:5432/wizamart
# Security # Security
JWT_SECRET_KEY=your-super-secret-key-change-in-production JWT_SECRET_KEY=your-super-secret-key-change-in-production
@@ -39,7 +39,7 @@ RATE_LIMIT_WINDOW=3600
### Development ### Development
```env ```env
DEBUG=True DEBUG=True
DATABASE_URL=sqlite:///./ecommerce.db DATABASE_URL=sqlite:///./wizamart.db
``` ```
### Production ### Production

View File

@@ -19,7 +19,7 @@ cp .env.example .env
# Edit .env with your database configuration # Edit .env with your database configuration
# For development, you can use SQLite: # For development, you can use SQLite:
DATABASE_URL=sqlite:///./ecommerce.db DATABASE_URL=sqlite:///./wizamart.db
# For PostgreSQL (recommended for production-like development): # For PostgreSQL (recommended for production-like development):
# DATABASE_URL=postgresql://username:password@localhost:5432/ecommerce_dev # DATABASE_URL=postgresql://username:password@localhost:5432/ecommerce_dev
@@ -130,7 +130,7 @@ make migrate-down
make backup-db make backup-db
# Delete database and recreate from scratch # Delete database and recreate from scratch
del ecommerce.db # or drop PostgreSQL database del wizamart.db # or drop PostgreSQL database
make migrate-up make migrate-up
``` ```
@@ -138,7 +138,7 @@ make migrate-up
### Development (SQLite) ### Development (SQLite)
```env ```env
DATABASE_URL=sqlite:///./ecommerce.db DATABASE_URL=sqlite:///./wizamart.db
``` ```
- Quick setup, no additional software needed - Quick setup, no additional software needed
- File-based database, easy to backup/restore - File-based database, easy to backup/restore
@@ -146,7 +146,7 @@ DATABASE_URL=sqlite:///./ecommerce.db
### Development (PostgreSQL) ### Development (PostgreSQL)
```env ```env
DATABASE_URL=postgresql://user:password@localhost:5432/ecommerce_dev DATABASE_URL=postgresql://user:password@localhost:5432/wizamart_dev
``` ```
- More production-like environment - More production-like environment
- Better for testing complex queries - Better for testing complex queries
@@ -154,7 +154,7 @@ DATABASE_URL=postgresql://user:password@localhost:5432/ecommerce_dev
### Production ### Production
```env ```env
DATABASE_URL=postgresql://user:password@production-host:5432/ecommerce_prod DATABASE_URL=postgresql://user:password@production-host:5432/wizamart_prod
``` ```
- Always use PostgreSQL in production - Always use PostgreSQL in production
- Migrations are applied automatically during deployment - Migrations are applied automatically during deployment

View File

@@ -1,6 +1,6 @@
# Installation Guide # Installation Guide
This guide will help you set up the Letzshop Import application for development or production use. This guide will help you set up the Wizamart Platform for development or production use.
## Prerequisites ## Prerequisites
@@ -16,8 +16,8 @@ Before you begin, ensure you have the following installed:
### 1. Clone the Repository ### 1. Clone the Repository
```bash ```bash
git clone https://github.com/yourusername/letzshop-import.git git clone <wizamart-repo>
cd letzshop-import cd wizamart-repo
``` ```
### 2. Create Virtual Environment ### 2. Create Virtual Environment
@@ -38,16 +38,18 @@ cd letzshop-import
```bash ```bash
# Install main application dependencies # Install main application dependencies
pip install -r requirements.txt pip install -r requirements.txt # or make install
# Install development dependencies # Install development dependencies
pip install -r requirements-dev.txt pip install -r requirements-dev.txt # or make install-dev
# Install test dependencies # Install test dependencies
pip install -r tests/requirements-test.txt pip install -r tests/requirements-test.txt # or make install-test
# Install documentation dependencies (optional) # Install documentation dependencies (optional)
pip install -r requirements-docs.txt pip install -r requirements-docs.txt # or make install-docs
# All dependencies can be installed with make install-all
``` ```
### 4. Database Setup ### 4. Database Setup
@@ -56,9 +58,9 @@ pip install -r requirements-docs.txt
1. **Create Database**: 1. **Create Database**:
```sql ```sql
CREATE DATABASE letzshop_import; CREATE DATABASE wizamart_db;
CREATE USER letzshop_user WITH PASSWORD 'your_password'; CREATE USER wizamart_user WITH PASSWORD 'your_password';
GRANT ALL PRIVILEGES ON DATABASE letzshop_import TO letzshop_user; GRANT ALL PRIVILEGES ON DATABASE wizamart_db TO wizamart_user;
``` ```
2. **Create Environment File**: 2. **Create Environment File**:
@@ -69,7 +71,7 @@ pip install -r requirements-docs.txt
3. **Configure `.env` file**: 3. **Configure `.env` file**:
```env ```env
# Database # Database
DATABASE_URL=postgresql://letzshop_user:your_password@localhost/letzshop_import DATABASE_URL=postgresql://wizamart_user:your_password@localhost/wizamart
# Security # Security
SECRET_KEY=your-super-secret-key-here SECRET_KEY=your-super-secret-key-here
@@ -83,9 +85,9 @@ pip install -r requirements-docs.txt
#### Option B: Docker PostgreSQL #### Option B: Docker PostgreSQL
```bash ```bash
docker run --name letzshop-postgres \ docker run --name wizamart-postgres \
-e POSTGRES_DB=letzshop_import \ -e POSTGRES_DB=wizamart_import \
-e POSTGRES_USER=letzshop_user \ -e POSTGRES_USER=wizamart_user \
-e POSTGRES_PASSWORD=your_password \ -e POSTGRES_PASSWORD=your_password \
-p 5432:5432 \ -p 5432:5432 \
-d postgres:15 -d postgres:15
@@ -105,7 +107,7 @@ python scripts/create_admin.py
```bash ```bash
# Start development server # Start development server
uvicorn main:app --reload --host 0.0.0.0 --port 8000 uvicorn main:app --reload --host 0.0.0.0 --port 8000 # or make dev
``` ```
The application will be available at: The application will be available at:
@@ -119,8 +121,8 @@ The application will be available at:
1. **Clone and navigate to project**: 1. **Clone and navigate to project**:
```bash ```bash
git clone https://github.com/yourusername/letzshop-import.git git clone <wizamart-repo>
cd letzshop-import cd wizamart-repo
``` ```
2. **Start all services**: 2. **Start all services**:
@@ -143,11 +145,11 @@ The application will be available at:
2. **Run with environment variables**: 2. **Run with environment variables**:
```bash ```bash
docker run -d \ docker run -d \
--name letzshop-api \ --name wizamart-api \
-p 8000:8000 \ -p 8000:8000 \
-e DATABASE_URL="postgresql://user:pass@host/db" \ -e DATABASE_URL="postgresql://user:pass@host/db" \
-e SECRET_KEY="your-secret-key" \ -e SECRET_KEY="your-secret-key" \
letzshop-import wizamart-import
``` ```
## Verification ## Verification

View File

@@ -1,6 +1,6 @@
# Quick Start Guide # Quick Start Guide
Get up and running with the Letzshop Import API in 5 minutes. Get up and running with the Wizamart API in 5 minutes.
## Prerequisites ## Prerequisites
@@ -11,8 +11,8 @@ Get up and running with the Letzshop Import API in 5 minutes.
```bash ```bash
# 1. Clone and setup # 1. Clone and setup
git clone <your-repo> git clone <wizamart-repo>
cd letzshop-import cd wizamart-repo
make setup make setup
# 2. Start development # 2. Start development