Follow the steps below to set up and run the frontend project locally.
cd CPT202_frontendnpm installIn src/request.ts, change the baseURL from production to development:
// Distinguish between development and production environments
const DEV_BASE_URL = "http://localhost:8080";
const PROD_BASE_URL = "http://118.31.173.230";
// Create an Axios instance
const myAxios = axios.create({
baseURL: DEV_BASE_URL, // ← change this line
timeout: 300000,
withCredentials: true,
});Make sure the backend server is running at http://localhost:8080.
npm run devYour application should now be running at http://localhost:5173 (or similar port depending on Vite settings).