diff --git a/README.md b/README.md index 6a0d95c6..4f9c391f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ This FastAPI application provides a complete ecommerce backend solution designed ### Project Structure ``` -letzshop_api/ +wizamart/ ├── main.py # FastAPI application entry point ├── app/ │ ├── core/ @@ -179,8 +179,8 @@ make qa ```bash # Clone the repository -git clone -cd letzshop_api +git clone +cd wizamart-repo # Create virtual environment python -m venv venv diff --git a/app/templates/admin/users.html b/app/templates/admin/users.html index 8c7309d4..c91f0245 100644 --- a/app/templates/admin/users.html +++ b/app/templates/admin/users.html @@ -1,6 +1,6 @@ {% extends "admin/base.html" %} -{% block title %}Users Management - LetzShop Admin{% endblock %} +{% block title %}Users Management - Wizamart Admin{% endblock %} {% block page_title %}Users Management{% endblock %} diff --git a/docker-compose.yml b/docker-compose.yml index 26ef984a..cab2fc64 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: image: postgres:15 restart: always environment: - POSTGRES_DB: ecommerce_db + POSTGRES_DB: wizamart_db POSTGRES_USER: ecommerce_user POSTGRES_PASSWORD: secure_password volumes: @@ -15,7 +15,7 @@ services: ports: - "5432:5432" 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 timeout: 10s retries: 3 diff --git a/docs/api/index.md b/docs/api/index.md index 9ba20cdf..79638378 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -1,6 +1,6 @@ # 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 @@ -15,7 +15,7 @@ For hands-on API exploration and testing, use our interactive documentation: ### Base URL ``` -Production: https://api.letzshop.com/api/v1 +Production: https://wizamart.com/api/v1 Development: http://localhost:8000/api/v1 ``` diff --git a/docs/development/environment-detection.md b/docs/development/environment-detection.md index b6b81776..250a6ce7 100644 --- a/docs/development/environment-detection.md +++ b/docs/development/environment-detection.md @@ -518,8 +518,8 @@ def debug_environment(): **Setup:** ```bash # Clone repo -git clone -cd wizamart +git clone +cd wizamart-repo # Create virtual environment python -m venv venv diff --git a/docs/development/exception-handling.md b/docs/development/exception-handling.md index dd82d327..5fab8859 100644 --- a/docs/development/exception-handling.md +++ b/docs/development/exception-handling.md @@ -2,7 +2,7 @@ ## 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 diff --git a/docs/development/troubleshooting.md b/docs/development/troubleshooting.md index e9785df0..6790a2cb 100644 --- a/docs/development/troubleshooting.md +++ b/docs/development/troubleshooting.md @@ -314,7 +314,7 @@ If you need to work immediately: ``` Host: localhost Port: 5432 - Database: letzshop_db + Database: wizamart_db User: [from .env file] Password: [from .env file] ``` diff --git a/docs/getting-started/DATABASE_QUICK_REFERENCE.md b/docs/getting-started/DATABASE_QUICK_REFERENCE.md index 5776358b..bf8f7f61 100644 --- a/docs/getting-started/DATABASE_QUICK_REFERENCE.md +++ b/docs/getting-started/DATABASE_QUICK_REFERENCE.md @@ -8,8 +8,8 @@ Quick reference for common database operations. See `DATABASE_SETUP_GUIDE.md` fo ```bash # 1. Clone and setup -git clone -cd letzshop +git clone +cd wizamart-repo python -m venv venv venv\Scripts\activate # Windows pip install -r requirements.txt diff --git a/docs/getting-started/DATABASE_SETUP_GUIDE.md b/docs/getting-started/DATABASE_SETUP_GUIDE.md index a14f5573..6651276c 100644 --- a/docs/getting-started/DATABASE_SETUP_GUIDE.md +++ b/docs/getting-started/DATABASE_SETUP_GUIDE.md @@ -2,7 +2,7 @@ ## 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 # 1. Clone the repository -git clone -cd letzshop + git clone + cd wizamart-repo # 2. Create virtual environment -python -m venv venv + python -m venv venv # 3. Activate virtual environment # Windows: -venv\Scripts\activate + venv\Scripts\activate # Linux/Mac: -source venv/bin/activate + source venv/bin/activate # 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 # For PostgreSQL (production): -# DATABASE_URL=postgresql://user:password@localhost:5432/letzshop +# DATABASE_URL=postgresql://user:password@localhost:5432/wizamart # Other required settings SECRET_KEY=your-secret-key-here-change-in-production @@ -86,7 +86,7 @@ alembic init alembic sqlalchemy.url = sqlite:///./wizamart.db # Or for PostgreSQL: -# sqlalchemy.url = postgresql://user:password@localhost:5432/letzshop +# sqlalchemy.url = postgresql://user:password@localhost:5432/wizamart ``` **Configure `alembic/env.py`:** @@ -179,7 +179,7 @@ auth_manager = AuthManager() # Create admin user admin = User( username="admin", - email="admin@letzshop.com", + email="admin@wizamart.com", hashed_password=auth_manager.hash_password("admin123"), role="admin", is_active=True, @@ -723,7 +723,7 @@ def seed_database(): # Create admin user admin = User( username="admin", - email="admin@letzshop.com", + email="admin@wizamart.com", hashed_password=get_password_hash("admin123"), is_admin=True, is_active=True, diff --git a/docs/getting-started/configuration.md b/docs/getting-started/configuration.md index de970560..013e347a 100644 --- a/docs/getting-started/configuration.md +++ b/docs/getting-started/configuration.md @@ -1,6 +1,6 @@ # Configuration Guide -Environment configuration for the Letzshop Import API. +Environment configuration for the Wizamart API. ## Environment Variables @@ -8,8 +8,8 @@ Create a `.env` file in your project root: ```env # Database Configuration -DATABASE_URL=sqlite:///./ecommerce.db -# For PostgreSQL: DATABASE_URL=postgresql://user:password@localhost:5432/ecommerce +DATABASE_URL=sqlite:///./wizamart.db +# For PostgreSQL: DATABASE_URL=postgresql://user:password@localhost:5432/wizamart # Security JWT_SECRET_KEY=your-super-secret-key-change-in-production @@ -39,7 +39,7 @@ RATE_LIMIT_WINDOW=3600 ### Development ```env DEBUG=True -DATABASE_URL=sqlite:///./ecommerce.db +DATABASE_URL=sqlite:///./wizamart.db ``` ### Production diff --git a/docs/getting-started/database-setup.md b/docs/getting-started/database-setup.md index 22d73d0d..03526cd0 100644 --- a/docs/getting-started/database-setup.md +++ b/docs/getting-started/database-setup.md @@ -19,7 +19,7 @@ cp .env.example .env # Edit .env with your database configuration # For development, you can use SQLite: -DATABASE_URL=sqlite:///./ecommerce.db +DATABASE_URL=sqlite:///./wizamart.db # For PostgreSQL (recommended for production-like development): # DATABASE_URL=postgresql://username:password@localhost:5432/ecommerce_dev @@ -130,7 +130,7 @@ make migrate-down make backup-db # Delete database and recreate from scratch -del ecommerce.db # or drop PostgreSQL database +del wizamart.db # or drop PostgreSQL database make migrate-up ``` @@ -138,7 +138,7 @@ make migrate-up ### Development (SQLite) ```env -DATABASE_URL=sqlite:///./ecommerce.db +DATABASE_URL=sqlite:///./wizamart.db ``` - Quick setup, no additional software needed - File-based database, easy to backup/restore @@ -146,7 +146,7 @@ DATABASE_URL=sqlite:///./ecommerce.db ### Development (PostgreSQL) ```env -DATABASE_URL=postgresql://user:password@localhost:5432/ecommerce_dev +DATABASE_URL=postgresql://user:password@localhost:5432/wizamart_dev ``` - More production-like environment - Better for testing complex queries @@ -154,7 +154,7 @@ DATABASE_URL=postgresql://user:password@localhost:5432/ecommerce_dev ### Production ```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 - Migrations are applied automatically during deployment diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 520c216b..67b8d3f0 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -1,6 +1,6 @@ # 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 @@ -16,8 +16,8 @@ Before you begin, ensure you have the following installed: ### 1. Clone the Repository ```bash -git clone https://github.com/yourusername/letzshop-import.git -cd letzshop-import + git clone + cd wizamart-repo ``` ### 2. Create Virtual Environment @@ -38,16 +38,18 @@ cd letzshop-import ```bash # Install main application dependencies -pip install -r requirements.txt +pip install -r requirements.txt # or make install # Install development dependencies -pip install -r requirements-dev.txt +pip install -r requirements-dev.txt # or make install-dev # 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) -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 @@ -56,9 +58,9 @@ pip install -r requirements-docs.txt 1. **Create Database**: ```sql - CREATE DATABASE letzshop_import; - CREATE USER letzshop_user WITH PASSWORD 'your_password'; - GRANT ALL PRIVILEGES ON DATABASE letzshop_import TO letzshop_user; + CREATE DATABASE wizamart_db; + CREATE USER wizamart_user WITH PASSWORD 'your_password'; + GRANT ALL PRIVILEGES ON DATABASE wizamart_db TO wizamart_user; ``` 2. **Create Environment File**: @@ -69,7 +71,7 @@ pip install -r requirements-docs.txt 3. **Configure `.env` file**: ```env # Database - DATABASE_URL=postgresql://letzshop_user:your_password@localhost/letzshop_import + DATABASE_URL=postgresql://wizamart_user:your_password@localhost/wizamart # Security SECRET_KEY=your-super-secret-key-here @@ -83,9 +85,9 @@ pip install -r requirements-docs.txt #### Option B: Docker PostgreSQL ```bash -docker run --name letzshop-postgres \ - -e POSTGRES_DB=letzshop_import \ - -e POSTGRES_USER=letzshop_user \ +docker run --name wizamart-postgres \ + -e POSTGRES_DB=wizamart_import \ + -e POSTGRES_USER=wizamart_user \ -e POSTGRES_PASSWORD=your_password \ -p 5432:5432 \ -d postgres:15 @@ -105,7 +107,7 @@ python scripts/create_admin.py ```bash # 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: @@ -119,8 +121,8 @@ The application will be available at: 1. **Clone and navigate to project**: ```bash - git clone https://github.com/yourusername/letzshop-import.git - cd letzshop-import + git clone + cd wizamart-repo ``` 2. **Start all services**: @@ -143,11 +145,11 @@ The application will be available at: 2. **Run with environment variables**: ```bash docker run -d \ - --name letzshop-api \ + --name wizamart-api \ -p 8000:8000 \ -e DATABASE_URL="postgresql://user:pass@host/db" \ -e SECRET_KEY="your-secret-key" \ - letzshop-import + wizamart-import ``` ## Verification diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index 05cdd610..e5cc6734 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -1,6 +1,6 @@ # 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 @@ -11,8 +11,8 @@ Get up and running with the Letzshop Import API in 5 minutes. ```bash # 1. Clone and setup -git clone -cd letzshop-import +git clone +cd wizamart-repo make setup # 2. Start development