Skip to content

MuggleZzzH/Frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPT202 Frontend Setup Guide

📦 Project Setup

Follow the steps below to set up and run the frontend project locally.

1. Clone and Navigate to the Project Directory

cd CPT202_frontend

2. Install Dependencies

npm install

3. Configure Development Environment

In 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,
});

4. Start Backend Server

Make sure the backend server is running at http://localhost:8080.

5. Start the Frontend Server

npm run dev

Your application should now be running at http://localhost:5173 (or similar port depending on Vite settings).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 77.4%
  • TypeScript 16.8%
  • HTML 2.2%
  • CSS 1.9%
  • JavaScript 1.7%