🚀 Zongo Pay Zongo Pay est une solution de paiement moderne, rapide et sécurisée, conçue spécifiquement pour l'écosystème économique du Togo. L'application vise à simplifier les transactions financières en adaptant les standards technologiques actuels aux réalités locales (intégration mobile money, commerce de proximité, etc.).
## 🚀 Quick Start
### Prerequisites
- Node.js >= 18.17
- PNPM >= 9.0.0
### Installation
```bash
# Clone the repository
git clone
# Install dependencies
pnpm install
# Start development servers
pnpm dev
```
### Development URLs
- **API Server**:
localhost
- **Web App**:
localhost
- **API Proxy**:
localhost (proxied to API server)
## 📜 Available Scripts
### Root Level
```bash
pnpm dev # Start both API and web in development mode
pnpm build # Build both API and web for production
pnpm start # Start the API server in production mode
pnpm typecheck # Run TypeScript checks across all apps
```
### API App (`apps/api`)
```bash
pnpm -C apps/api dev # Start API in development mode
pnpm -C apps/api build # Build API for production
pnpm -C apps/api start # Start API in production mode
pnpm -C apps/api typecheck # TypeScript check for API
```
### Web App (`apps/web`)
```bash
pnpm -C apps/web dev # Start web app in development mode
pnpm -C apps/web build # Build web app for production
pnpm -C apps/web preview # Preview production build
pnpm -C apps/web typecheck # TypeScript check for web app
```
## 🛠️ API Endpoints
The API server provides the following endpoints:
- `GET /` → Returns `OK` status
- `GET /hello/:name` → Returns `{ message: "Hello NAME!" }`
### Example Usage
```bash
# Test the API directly
curl
localhost
# Or through the web app proxy
curl
localhost
```
## 🏠Production Deployment
### Build for Production
```bash
pnpm build
```
This will:
1. Compile TypeScript for the API (`apps/api/dist/`)
2. Build the React app for production (`apps/web/dist/`)
### Start Production Server
```bash
pnpm start
```
This starts only the API server. For the web app, you can:
- Serve the built files with any static file server
- Use `pnpm -C apps/web preview` for testing
## đź”§ Configuration
### Environme …