React 19 + Vite + Tailwind frontend for DGU AI Lab.
- Node 16+
- npm
.env.production(committed, used in Docker/K8s):VITE_API_BASE_URL=http://210.94.179.19:9796 VITE_NODE_ENV=production
.env(local override, git-ignored) example:VITE_API_BASE_URL=http://localhost:8080 VITE_NODE_ENV=development
- Install:
npm install - Dev server:
npm run dev→ http://localhost:5173 - Build:
npm run build - Preview build:
npm run preview
- Docker:
docker build -t ailab-frontend:latest .thendocker run -d -p 80:80 ailab-frontend:latest - Kubernetes (manual):
docker build -t ailab-frontend:latest . docker tag ailab-frontend:latest dguailab/ailab-frontend:latest docker push dguailab/ailab-frontend:latest kubectl apply -f k8s/namespace.yaml kubectl apply -f k8s/deployment.yaml kubectl apply -f k8s/service.yaml kubectl apply -f k8s/ingress.yaml kubectl rollout status deployment/ailab-frontend -n ailab-frontend- Or deploy through
./deploy.sh
- Or deploy through