Skip to main content

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

  1. Clone the project:
git clone https://github.com/DongYing-No-1-Middle-School/Current.git
cd Current/backend
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the backend service:
flask run --debug

Frontend Development

  1. Clone the project:
git clone https://github.com/DongYing-No-1-Middle-School/Current.git
cd Current
  1. Install dependencies:
npm install -g pnpm
pnpm install
  1. Start the development server:
pnpm dev