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
```
letzshop_api/
wizamart/
├── main.py # FastAPI application entry point
├── app/
│ ├── core/
@@ -179,8 +179,8 @@ make qa
```bash
# Clone the repository
git clone <repository-url>
cd letzshop_api
git clone <wizamart-repo>
cd wizamart-repo
# Create virtual environment
python -m venv venv

View File

@@ -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 %}

View File

@@ -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

View File

@@ -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
```

View File

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

View File

@@ -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

View File

@@ -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]
```

View File

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

View File

@@ -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,8 +30,8 @@ This guide walks you through setting up the LetzShop database from scratch. Whet
```bash
# 1. Clone the repository
git clone <repository-url>
cd letzshop
git clone <wizamart-repo>
cd wizamart-repo
# 2. Create virtual environment
python -m venv venv
@@ -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,

View File

@@ -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

View File

@@ -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

View File

@@ -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 <wizamart-repo>
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 <wizamart-repo>
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

View File

@@ -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 <your-repo>
cd letzshop-import
git clone <wizamart-repo>
cd wizamart-repo
make setup
# 2. Start development