JAHEEZ 是一个多应用的配送和跑腿平台,连接客户与本地司机。用户订购食物、杂货、药品、包裹或定制差事。
概览
JAHEEZ 是一个多应用的配送和跑腿平台,连接客户与本地司机。用户可以订购食品、杂货、药品、包裹或定制差事。司机负责接收和履行配送。管理员负责管理平台。 - ≥ 18 - ≥ 9 - : npm 安装 -g expo-cli(或使用npx expo)- 手机上的应用(用于移动测试)- 项目(用于后端)- 代码编辑器(推荐使用VS Code) 从你的 Supabase 项目仪表盘获取这些内容→设置→ API:- SUPABASE_URL / EXPO_PUBLIC_SUPABASE_URL / VITE_SUPABASE_URL - SUPABASE_ANON_KEY / EXPO_PUBLIC_SUPABASE_ANON_KEY / VITE_SUPABASE_ANON_KEY - SUPABASE_SERVICE_ROLE_KEY(根 .
概述(AI 翻译)
智能配送与跑腿平台 — 摩洛哥萨菲
JAHEEZ 是一个多应用的配送和跑腿平台,连接客户与本地司机。用户可以订购食品、杂货、药品、包裹或定制差事。司机负责接收和履行配送。管理员负责管理平台。
这个单人里的应用
| 应用 | 目录 | 技术 | 描述 |
|---|---|---|---|
| 用户应用 | user-app/ |
Expo SDK 55 + React Native | 客户移动应用(iOS + Android) |
驱动应用driver-app/ |
Expo SDK 55 + React Native | 驱动移动应用(iOS + Android) | |
| 管理面板 | admin/ |
Vite + React 18 | 网页管理仪表盘 |
| 管理API | scripts/admin-api.js |
Express.js | 管理操作后端API |
| 共享 | shared/ |
TypeScript | 共享类型与常量 |
先修条件
- Node.js ≥18
- npm ≥ 9
- Expo CLI:
npm install -g expo-cli(或使用npx expo) - 手机上的Expo Go应用(用于移动测试)
- Supabase 项目(后端)
- 代码编辑器(推荐使用VS Code)
环境设置
1.复制环境文件
2.填写你的Supabase资历
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
JAHEEZ — جاهز
Smart Delivery & Errands Platform — Safi, Morocco
JAHEEZ is a multi-app delivery and errand platform connecting customers with local drivers. Users order food, groceries, pharmacy items, parcels, or custom errands. Drivers accept and fulfill deliveries. Admins manage the platform.
Apps in This Monorepo
| App | Directory | Tech | Description |
|---|---|---|---|
| User App | user-app/ |
Expo SDK 55 + React Native | Customer mobile app (iOS + Android) |
| Driver App | driver-app/ |
Expo SDK 55 + React Native | Driver mobile app (iOS + Android) |
| Admin Panel | admin/ |
Vite + React 18 | Web admin dashboard |
| Admin API | scripts/admin-api.js |
Express.js | Backend API for admin operations |
| Shared | shared/ |
TypeScript | Shared types and constants |
Prerequisites
- Node.js ≥ 18
- npm ≥ 9
- Expo CLI:
npm install -g expo-cli(or usenpx expo) - Expo Go app on your phone (for mobile testing)
- Supabase project (for backend)
- A code editor (VS Code recommended)
Environment Setup
1. Copy environment files
# Root (for admin API)
cp .env.example .env
# User app
cp user-app/.env.example user-app/.env
# Admin panel
cp admin/.env.example admin/.env
2. Fill in your Supabase credentials
Get these from your Supabase project dashboard → Settings → API:
SUPABASE_URL/EXPO_PUBLIC_SUPABASE_URL/VITE_SUPABASE_URLSUPABASE_ANON_KEY/EXPO_PUBLIC_SUPABASE_ANON_KEY/VITE_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEY(root .env only — for admin API)
3. Optional services
- Infobip — SMS OTP (set
INFOBIP_API_KEYandINFOBIP_BASE_URL) - Stripe — Card payments (set
STRIPE_SECRET_KEYandEXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY) - ModernMT — Dynamic translation (set
EXPO_PUBLIC_MODERNMT_API_KEY)
Running the User App
cd user-app
npm install
npx expo start
Then scan the QR code with Expo Go on your phone, or press:
a— Open on Android emulatori— Open on iOS simulatorw— Open in web browser
Running the Driver App
cd driver-app
npm install
npx expo start
Running the Admin Panel
cd admin
npm install
npm run dev
Opens at http://localhost:5173. Login requires an admin account.
Running the Admin API
# From root directory
npm install
node scripts/admin-api.js
Runs on http://localhost:3001. Required for:
- Admin panel authentication
- User registration (phone-disabled fallback)
- Store/driver/order management
Creating an Admin Account
node scripts/create-admin.js
Seeding Sample Stores
node scripts/seed-stores.js
Project Structure
jaheez/
├── user-app/ # Customer mobile app (Expo/React Native)
├── driver-app/ # Driver mobile app (Expo/React Native)
├── admin/ # Admin web panel (Vite/React)
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add soulaimanetrg/jaheez