Skip to content

CSID-DGU/AILab-FE

Repository files navigation

DGU AI Lab Frontend

React 19 + Vite + Tailwind frontend for DGU AI Lab.

Requirements

  • Node 16+
  • npm

Environment

  • .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

Commands

  • Install: npm install
  • Dev server: npm run devhttp://localhost:5173
  • Build: npm run build
  • Preview build: npm run preview

Deploy

  • Docker: docker build -t ailab-frontend:latest . then docker 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

About

DGU GPU Server Management System Frontend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages