Setting Up the Development Environment
Requirements
- Git client
- Python 3.9+ (for backend)
- Node.js 18+, npm 8+ (for frontend)
tip
If you need to develop the frontend, the backend must also be running simultaneously; otherwise, the frontend will not function properly.
If you only need to develop the backend, the frontend is not necessary. You can use tools like Postman to test the backend APIs.
Backend Development
- Clone the project:
git clone https://github.com/DongYing-No-1-Middle-School/Current.git
cd Current/backend
- Install dependencies:
pip install -r requirements.txt
- Run the backend service:
flask run --debug
Frontend Development
- Clone the project:
git clone https://github.com/DongYing-No-1-Middle-School/Current.git
cd Current
- Install dependencies:
npm install -g pnpm
pnpm install
- Start the development server:
pnpm dev