Logo Lanfrica

ogedo/wecare4you

Domaine:

healthcare

Type de record:

software
Créateur:
oge
Hôte:
Tele mental health platform for Africa — React Native + Next.js + Fastify + Paystack # WeCare4You — Tele Mental Health Platform A full-stack tele mental health platform built for the Nigerian market, with a pan-African expansion roadmap. ## Architecture ``` wecare4you/ # pnpm + Turborepo monorepo ├── apps/ │ ├── api/ # Fastify + TypeScript backend (port 3001) │ ├── web/ # Next.js 14 admin + provider portal (port 3000) │ └── mobile/ # Expo SDK 52 React Native patient/provider app └── packages/ ├── types/ # Shared Zod schemas + TypeScript types ├── ui/ # Shared component library (shadcn-style) └── config/ # Shared ESLint, TypeScript, Tailwind configs ``` ## Tech Stack | Layer | Technology | |---|---| | Mobile | React Native + Expo SDK 52 + Expo Router | | Web | Next.js 14 (App Router) + TypeScript + Tailwind | | Backend | Node.js + Fastify + TypeScript | | Database | PostgreSQL 16 + Prisma ORM | | Real-time | Socket.io + Redis adapter | | Video | Daily.co (adaptive bitrate WebRTC) | | Auth | Phone OTP (Termii SMS) + Email/Password fallback + JWT | | Payments | Paystack (NGN — cards, bank transfer, USSD) | | Storage | Cloudinary | | Cache | Redis (ioredis) | ## Prerequisites - Node.js ≥ 20 - pnpm ≥ 9 (`npm install -g pnpm`) - Docker Desktop (for PostgreSQL + Redis) - Expo CLI (`npm install -g expo-cli`) for mobile dev ## Quick Start ### 1. Clone and install ```bash git clone github.com cd wecare4you pnpm install ``` ### 2. Environment variables ```bash cp .env.example .env # Fill in your API keys (Paystack, Daily.co, Termii, Cloudinary) cp apps/web/.env.local.example apps/web/.env.local cp apps/mobile/.env.example apps/mobile/.env ``` ### 3. Start infrastructure ```bash docker compose -f docker-compose.dev.yml up -d # starts PostgreSQL 16 + Redis 7 ``` ### 4. Database setup ```bash pnpm --filter @wecare4you/api db:generate # generate Prisma client pnpm --filter @wecare4you/api db:migra …

Languages