# Walletes Landing – Deployment Guide

This project is a standard React (CRA + CRACO + Tailwind) frontend and (optional) FastAPI backend.
You've asked to remove the Emergent badge and references — they are removed in `frontend/public/index.html`.

## Quick production build (Frontend)

### Requirements
- Node.js 18+ and Yarn (or npm)
- (Optional) Python 3.10+ for backend

### Build commands
```bash
cd frontend
yarn install           # or: npm install
yarn build             # or: npm run build
```

The static files will be in `frontend/build/`. Upload *everything inside* `frontend/build/` to your web server (Nginx, Apache, S3+CloudFront, Netlify, Vercel static, etc.).

The landing's main CTA button should point to: 
`https://dashboard.walletes.io/user/login`

## Serve with Nginx (example)

Copy `frontend/build/` to `/var/www/walletes` and use this server block:
```nginx
server {
    listen 80;
    server_name walletes.io www.walletes.io;

    root /var/www/walletes;
    index index.html;

    location / {
        try_files $uri /index.html;
    }
}
```

## Docker (build & serve static with Nginx)
```bash
# From repo root
docker build -t walletes-landing -f Dockerfile.frontend .
docker run -d -p 8080:80 --name walletes-landing walletes-landing
# Open http://localhost:8080
```

## Backend (optional / not required for landing)
- Edit `backend/.env` (Mongo URI, etc)
- Run locally:
```bash
cd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn server:app --host 0.0.0.0 --port 8000
```

> Note: The uploaded package does not include prebuilt frontend assets. You need to run `yarn build` once on your machine or CI to generate `frontend/build/`. Without that step, you cannot deploy the React app as static files.