removing references to letzshop, replacing by wizamart
This commit is contained in:
@@ -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 <repository-url>
|
||||
cd letzshop
|
||||
git clone <wizamart-repo>
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user