Docs / apps/user-app/README.md
Chimti User App
React + Vite frontend for Chimti store/user operations.
The backend has been split into the standalone `chimti-api` repo:
https://github.com/otlugroup/chimti-api
Local Setup
Start the API first:
cd ../chimti-api
npm install
cp .env.example .env
docker compose up -d
npm run prisma:generate
npm run prisma:migrate
npm run dev
Then start this app:
npm install
cp .env.example .env
npm run dev
Default API URL:
VITE_BACKEND_API_BASE_URL=http://localhost:4010
Build
npm run build
Deployment
Deploy this repo as a static Vite app. Set:
VITE_APP_VARIANT=user
VITE_BACKEND_API_BASE_URL=https://api.yourdomain.com
`VITE_*` variables must be available at build time.