README.md – Run Project (English)**
This project consists of:
- Frontend: Next.js (React + TypeScript)
- Backend: Golang + Gin
- Docker & Docker Compose to run both FE and BE together
- Clone Repository**
git clone <REPO_URL>
cd web-DU- Verify Folder Structure
Ensure the following structure in the root folder:
web-DU/
├── frontend/ # Next.js frontend
├── backend/ # Golang backend
└── docker-compose.yml # Docker Compose config
docker-compose up --build- Frontend: http://localhost:3000
- Backend: http://localhost:8080/hello
Frontend hot reload works automatically thanks to volume mount (
./frontend:/app)
docker-compose down- Frontend Next.js must run in development mode (
npm run devin the container) for hot reload - Backend Golang does not have hot reload by default; you can use tools like
airorfresh - If Dockerfile or dependencies change, rebuild containers:
docker-compose up --buildFrontend Next.js:
NEXT_PUBLIC_API_URL=http://backend:8080Backend Golang:
- Configure as needed (e.g., database URL, port, etc.)
---